https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html
File doc/go_spec.html (right):
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode819
doc/go_spec.html:819: negative <a href="#Constants">constant</a>
representable by an <code>int</code> value.
On 2012/12/10 20:36:21, iant wrote:
Perhaps s/an int value/a value of type int/ ?
Done.Perhaps s/an int value/a value of type int/ ?
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode837
doc/go_spec.html:837: Implementation restriction: A compiler may
restrict the maximum pemissible
On 2012/12/10 20:36:21, iant wrote:
s/A compiler/An implementation/
s/pemissible/permissible/
Done.s/A compiler/An implementation/
s/pemissible/permissible/
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode839
doc/go_spec.html:839: may be restricted by the size of the address
space.
On 2012/12/10 20:36:21, iant wrote:
This restriction is too vague. We can't simply say what we do not
permit. We
have to also say what we require, otherwise an implementation can only permit
arrays of size < 10. For example, we could say that every
implementation is
required to support arrays of length up to 1/2 of the maximum possible integer.
Or 1/4, or whatever.
Done.This restriction is too vague. We can't simply say what we do not
permit. We
have to also say what we require, otherwise an implementation can only permit
arrays of size < 10. For example, we could say that every
implementation is
required to support arrays of length up to 1/2 of the maximum possible integer.
Or 1/4, or whatever.
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode2512
doc/go_spec.html:2512: <li>a <a href="#Constants">constant</a> index
must be representable by a non-negative <code>int</code> value
On 2012/12/10 20:36:21, iant wrote:
Perhaps "must be non-negative and must be representable by a value of
type int"?Perhaps "must be non-negative and must be representable by a value of
Done.
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode2516
doc/go_spec.html:2516: Additionally, for <code>a</code> of type
<code>A</code> or <code>*A</code>
On 2012/12/10 20:36:21, iant wrote:
I don't think you want to say "Additionally" here. It doesn't really work with
the fact that this list is not merely restrictions on the index, it also says
what a[x] actually means.
Done.I don't think you want to say "Additionally" here. It doesn't really work with
the fact that this list is not merely restrictions on the index, it also says
what a[x] actually means.
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode2646
doc/go_spec.html:2646: A <a href="#Constants">constant</a> index must be
representable by a non-negative <code>int</code> value.
On 2012/12/10 20:36:21, iant wrote:
Perhaps "must be representable by a value of type int and must be
non-negative."Perhaps "must be representable by a value of type int and must be
Done.
https://codereview.appspot.com/6903048/diff/18001/doc/go_spec.html#newcode4998
doc/go_spec.html:4998: non-negative <code>int</code> value.
On 2012/12/10 20:36:21, iant wrote:
Same change in wording.
Done.Same change in wording.
https://codereview.appspot.com/6903048/