diff options
author | Robert Griesemer <gri@golang.org> | 2010-04-29 10:57:27 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-04-29 10:57:27 -0700 |
commit | 43bb3333f68281fd201f6dfa1ea629d194696014 (patch) | |
tree | 4844bc3aae77e0bc1639680c8b0d5a97eda29894 | |
parent | bf140d5cdd313400bc4d7192fab7ef1667dfdae8 (diff) | |
download | golang-43bb3333f68281fd201f6dfa1ea629d194696014.tar.gz |
go spec: fix iota description
R=r, rsc
CC=golang-dev
http://codereview.appspot.com/946046
-rw-r--r-- | doc/go_spec.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index b4637e6e2..fe592ee97 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1648,12 +1648,11 @@ const ( <h3 id="Iota">Iota</h3> <p> -Within a constant declaration, the predeclared identifier +Within a <a href="#Constant_declarations">constant declaration</a>, the predeclared identifier <code>iota</code> represents successive untyped integer <a href="#Constants"> constants</a>. It is reset to 0 whenever the reserved word <code>const</code> -appears in the source and increments with each -<a href="#Semicolons">semicolon</a>. It can be used to construct a -set of related constants: +appears in the source and increments after each <a href="#ConstSpec">ConstSpec</a>. +It can be used to construct a set of related constants: </p> <pre> @@ -1681,7 +1680,7 @@ const y = iota // y == 0 (iota has been reset) <p> Within an ExpressionList, the value of each <code>iota</code> is the same because -it is only incremented at a semicolon: +it is only incremented after each ConstSpec: </p> <pre> |