]> Cypherpunks repositories - gostls13.git/commitdiff
spec: improve wording by choosing an official term "keyword"
authorDQNEO <dqneoo@gmail.com>
Mon, 31 May 2021 03:15:12 +0000 (12:15 +0900)
committerRobert Griesemer <gri@golang.org>
Sat, 5 Jun 2021 19:51:45 +0000 (19:51 +0000)
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>

doc/go_spec.html

index e59b3554f288e087efe281f3f074b495ae4d899e..7a2b3a80f0cc79d778264c4717390d05f9c3c4b8 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of Apr 28, 2021",
+       "Subtitle": "Version of Jun 2, 2021",
        "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
 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>
-using the reserved word <code>type</code> rather than an actual type:
+using the keyword <code>type</code> rather than an actual type:
 </p>
 
 <pre>