Skip to content

Commit ddc64de

Browse files
committed
spec: explicitly state the import path for package unsafe
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 <[email protected]> Reviewed-by: Rob Pike <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent 5d168a9 commit ddc64de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/go_spec.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version of September 19, 2017",
3+
"Subtitle": "Version of October 17, 2017",
44
"Path": "/ref/spec"
55
}-->
66

@@ -6459,7 +6459,8 @@ <h2 id="System_considerations">System considerations</h2>
64596459
<h3 id="Package_unsafe">Package <code>unsafe</code></h3>
64606460

64616461
<p>
6462-
The built-in package <code>unsafe</code>, known to the compiler,
6462+
The built-in package <code>unsafe</code>, known to the compiler
6463+
and accessible through the <a href="#Import_declarations">import path</a> <code>"unsafe"</code>,
64636464
provides facilities for low-level programming including operations
64646465
that violate the type system. A package using <code>unsafe</code>
64656466
must be vetted manually for type safety and may not be portable.

0 commit comments

Comments
 (0)