]> Cypherpunks repositories - gostls13.git/commitdiff
spec: reword claim about the grammar being regular
authorAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 13 Dec 2019 11:07:06 +0000 (12:07 +0100)
committerRob Pike <r@golang.org>
Fri, 13 Dec 2019 20:41:04 +0000 (20:41 +0000)
Since the word "regular" has a precise meaning in the context of
formal languages, the Introduction sentence claiming that Go's grammar
is "compact and regular" may mislead readers.

Reword it using Rob's suggestion.

Fixes #36037

Change-Id: I00c1a5714bdab8878d9a77b36d67dae67d63da0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/211277
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html

index 724b044aa40977c7cc8eff78e8c724e93c4815d0..4fff107c9befd3d4dc6b2bcb76fac7929c1a6276 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of Sep 4, 2019",
+       "Subtitle": "Version of Dec 13, 2019",
        "Path": "/ref/spec"
 }-->
 
@@ -20,8 +20,8 @@ dependencies.
 </p>
 
 <p>
-The grammar is compact and regular, allowing for easy analysis by
-automatic tools such as integrated development environments.
+The grammar is compact and simple to parse, allowing for easy analysis
+by automatic tools such as integrated development environments.
 </p>
 
 <h2 id="Notation">Notation</h2>