summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2013-09-04 13:39:02 +0100
committerHarry Jeffery <harry@exec64.co.uk>2013-09-04 13:39:02 +0100
commit078f6bbc9d3677c497a54c9286dc692a0cf815a7 (patch)
treeade93862dc4c17358d88243544662cf6030a5e3a
parent412b312c45ccb8922f92c4ee364819fb0add7734 (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.
-rw-r--r--go.html.markdown2
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