mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
spec: improve wording by choosing an official term "keyword"
Replace "reserved word" by "keyword" as the latter is the official term. Change-Id: I9f269759b872026034a9f47e4a761cff2d348ca0 Reviewed-on: https://go-review.googlesource.com/c/go/+/323729 Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Ian Lance Taylor <iant@golang.org> Trust: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
e3cb381704
commit
f490134126
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of Apr 28, 2021",
|
"Subtitle": "Version of Jun 2, 2021",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
|
|
@ -5020,7 +5020,7 @@ floating point, or string constants in case expressions.
|
||||||
A type switch compares types rather than values. It is otherwise similar
|
A type switch compares types rather than values. It is otherwise similar
|
||||||
to an expression switch. It is marked by a special switch expression that
|
to an expression switch. It is marked by a special switch expression that
|
||||||
has the form of a <a href="#Type_assertions">type assertion</a>
|
has the form of a <a href="#Type_assertions">type assertion</a>
|
||||||
using the reserved word <code>type</code> rather than an actual type:
|
using the keyword <code>type</code> rather than an actual type:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue