From 078f6bbc9d3677c497a54c9286dc692a0cf815a7 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Wed, 4 Sep 2013 13:39:02 +0100 Subject: =?UTF-8?q?Corrected=20comment:=20utf-8=20=E2=86=92=20unicode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- go.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3