diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2013-09-04 13:39:02 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2013-09-04 13:39:02 +0100 |
commit | 078f6bbc9d3677c497a54c9286dc692a0cf815a7 (patch) | |
tree | ade93862dc4c17358d88243544662cf6030a5e3a /go.html.markdown | |
parent | 412b312c45ccb8922f92c4ee364819fb0add7734 (diff) |
Corrected comment: utf-8 → unicode
Runes hold the raw unicode code point, not utf-8. Storing utf-8 inside of a uint32 would be highly inefficient. Runes are essentially utf-32.
Diffstat (limited to 'go.html.markdown')
-rw-r--r-- | go.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown index 4db76a49..d7622ded 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -71,7 +71,7 @@ func learnTypes() { can include line breaks.` // same string type // non-ASCII literal. Go source is UTF-8. - g := 'Σ' // rune type, an alias for uint32, holds a UTF-8 code point + g := 'Σ' // rune type, an alias for uint32, holds a unicode code point f := 3.14195 // float64, an IEEE-754 64-bit floating point number c := 3 + 4i // complex128, represented internally with two float64s |