]> Cypherpunks repositories - gostls13.git/commit
doc/next: improve new(expr) release note
authorAlan Donovan <adonovan@google.com>
Wed, 22 Oct 2025 21:56:32 +0000 (17:56 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 23 Oct 2025 03:30:59 +0000 (20:30 -0700)
commit77fc27972a2333c1e3a43cfa406276775ac0c579
treedf280d999021385696f71a9a09f8854dcaa0f3f6
parentd94a8c56adcd83572345f6136d609f488b9c58a8
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
Reviewed-on: https://go-review.googlesource.com/c/go/+/714040
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
doc/next/2-language.md