tour: use uint in example code to avoid amiguity with inline code
Fixes go/golang#13412
Change-Id: I8900638c707120832e2d5a1e5c3be2c14baef6a5
Reviewed-on: https://go-review.googlesource.com/17513
Reviewed-by: Minux Ma <minux@golang.org>
diff --git a/content/basics.article b/content/basics.article
index fcaafd5..8a10101 100644
--- a/content/basics.article
+++ b/content/basics.article
@@ -180,7 +180,7 @@
Unlike in C, in Go assignment between items of different type requires an
explicit conversion.
-Try removing the `float64` or `int` conversions in the example and see what happens.
+Try removing the `float64` or `uint` conversions in the example and see what happens.
.play basics/type-conversions.go
diff --git a/content/basics/type-conversions.go b/content/basics/type-conversions.go
index 84b71b2..0ce3537 100644
--- a/content/basics/type-conversions.go
+++ b/content/basics/type-conversions.go
@@ -10,6 +10,6 @@
func main() {
var x, y int = 3, 4
var f float64 = math.Sqrt(float64(x*x + y*y))
- var z int = int(f)
+ var z uint = uint(f)
fmt.Println(x, y, z)
}