]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add missing builtin functions not permitted in statement context
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 13 Feb 2023 17:15:43 +0000 (00:15 +0700)
committerGopher Robot <gobot@golang.org>
Thu, 16 Feb 2023 19:49:55 +0000 (19:49 +0000)
The typechecker already enforces this semantic, but the spec is not
updated when unsafe.{SliceData,String,StringData} were added.

Change-Id: I4ee8c564d5681b2a5fd31ff424a31bdf065d9f3b
Reviewed-on: https://go-review.googlesource.com/c/go/+/467756
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html

index d75421c02fda7a877b917ac5e3c42944f1615dc5..4604cb65e466585e96bc179012d34a2e68bed9c8 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of January 19, 2022",
+       "Subtitle": "Version of February 14, 2023",
        "Path": "/ref/spec"
 }-->
 
@@ -6027,7 +6027,7 @@ The following built-in functions are not permitted in statement context:
 
 <pre>
 append cap complex imag len make new real
-unsafe.Add unsafe.Alignof unsafe.Offsetof unsafe.Sizeof unsafe.Slice
+unsafe.Add unsafe.Alignof unsafe.Offsetof unsafe.Sizeof unsafe.Slice unsafe.SliceData unsafe.String unsafe.StringData
 </pre>
 
 <pre>