mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Fixing what appear to be typos to me
parent
0c99167e2c
commit
3557d65fe9
2
Iota.md
2
Iota.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Go's ` iota ` identifier is used in ` const ` declarations to simplify definitions of incrementing numbers. Because it can be used in expressions, it provides a generality beyond that of simple enumerations.
|
Go's ` iota ` identifier is used in ` const ` declarations to simplify definitions of incrementing numbers. Because it can be used in expressions, it provides a generality beyond that of simple enumerations.
|
||||||
|
|
||||||
The values of iota is reset to 0 whenever the reserved word ` const ` appears in the source (i.e. each const block) and increments by one after each [ConstSpec](https://golang.org/ref/spec#ConstSpec) e.g. each Line. This can be combined with the constant shorthand (leaving out everything after the constant name) to very concisely define related constants.
|
The value of iota is reset to 0 whenever the reserved word ` const ` appears in the source (i.e. each const block) and incremented by one after each [ConstSpec](https://golang.org/ref/spec#ConstSpec) e.g. each Line. This can be combined with the constant shorthand (leaving out everything after the constant name) to very concisely define related constants.
|
||||||
|
|
||||||
Iota: http://golang.org/doc/go_spec.html#Iota
|
Iota: http://golang.org/doc/go_spec.html#Iota
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user