]> Cypherpunks repositories - gostls13.git/commitdiff
spec: explicitly state the import path for package unsafe
authorgriesemer <gri@golang.org>
Tue, 17 Oct 2017 20:38:10 +0000 (13:38 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Oct 2017 23:30:58 +0000 (23:30 +0000)
Nowhere in the spec did we mention the import path for package
unsafe. Now we do.

Fixes #22308.

Change-Id: Ifd42c873188e898c597cdee4284e7a9d234a9282
Reviewed-on: https://go-review.googlesource.com/71373
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html

index 9962fa1c4145554bcbac32a33f303119703123e1..6189db5ee6f2b5d5f4ade71d5158a9757d0e0d92 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of September 19, 2017",
+       "Subtitle": "Version of October 17, 2017",
        "Path": "/ref/spec"
 }-->
 
@@ -6459,7 +6459,8 @@ type Error interface {
 <h3 id="Package_unsafe">Package <code>unsafe</code></h3>
 
 <p>
-The built-in package <code>unsafe</code>, known to the compiler,
+The built-in package <code>unsafe</code>, known to the compiler
+and accessible through the <a href="#Import_declarations">import path</a> <code>"unsafe"</code>,
 provides facilities for low-level programming including operations
 that violate the type system. A package using <code>unsafe</code>
 must be vetted manually for type safety and may not be portable.