[go] doc/next: improve new(expr) release note

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Oct 22, 2025, 11:31:04 PM (10 hours ago) Oct 22
to Alan Donovan, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Robert Griesemer, Go LUCI, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
doc/next: improve new(expr) release note

One reader pointed out that the example isn't compelling because
&age would have worked just as well. This CL changes the example
to use a nontrivial expression. Don't nitpick the arithmetic.

For #45624
Change-Id: Icc745f5ee7000c1d3559da1388c6a5596c4d1f46
Auto-Submit: Alan Donovan <adon...@google.com>
Reviewed-by: Robert Griesemer <g...@google.com>
Files:
  • M doc/next/2-language.md
Change size: XS
Delta: 1 file changed, 6 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Robert Griesemer
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Icc745f5ee7000c1d3559da1388c6a5596c4d1f46
Gerrit-Change-Number: 714040
Gerrit-PatchSet: 4
Gerrit-Owner: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages