1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:20:21 -07:00

spec: reword claim about the grammar being regular

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>
This commit is contained in:
Alberto Donizetti 2019-12-13 12:07:06 +01:00 committed by Rob Pike
parent ad12ee3006
commit 7d30af8e17

View 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>