]> Cypherpunks repositories - gostls13.git/commitdiff
fix some bad spaces
authorRob Pike <r@golang.org>
Tue, 22 Jul 2008 22:25:09 +0000 (15:25 -0700)
committerRob Pike <r@golang.org>
Tue, 22 Jul 2008 22:25:09 +0000 (15:25 -0700)
OCL=13363
CL=13363

doc/go_lang.txt

index 12346510091f1f16280a050c8d67ea9e5567494d..59c4244c6be905916cbd7059220e4814fbdfdd43 100644 (file)
@@ -687,12 +687,12 @@ conversion from expression list to composite value.
 
 Structure literals follow this form directly.  Given
 
-       type Rat struct { num, den int };
-       type Num struct { r Rat, f float, s string };
+  type Rat struct { num, den int };
+  type Num struct { r Rat, f float, s string };
 
 we can write
 
-       pi := Num(Rat(22,7), 3.14159, "pi")
+  pi := Num(Rat(22,7), 3.14159, "pi")
 
 For array literals, if the size is present the constructed array has that many
 elements; trailing elements are given the approprate zero value for that type.
@@ -705,7 +705,7 @@ if a specified size is less than the number of elements in the expression list.
 Map literals are similar except the elements of the expression list are
 key-value pairs separated by a colon:
 
-  m := map[string]int("good":0, "bad":1, "indifferent": 7)
+  m := map[string]int("good":0, "bad":1, "indifferent":7)
 
 TODO: helper syntax for nested arrays etc? (avoids repeating types but
 complicates the spec needlessly.)