summaryrefslogtreecommitdiff
path: root/doc/progs/print.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/print.go')
-rw-r--r--doc/progs/print.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/print.go b/doc/progs/print.go
index cc146fed8..5f651d6d8 100644
--- a/doc/progs/print.go
+++ b/doc/progs/print.go
@@ -12,8 +12,8 @@ func main() {
// harder stuff
type T struct { a int; b string };
- t := T{77, "Sunset Strip"};
- a := []int{1, 2, 3, 4};
+ t := T(77, "Sunset Strip");
+ a := []int(1, 2, 3, 4);
fmt.Printf("%v %v %v\n", u64, t, a);
fmt.Print(u64, " ", t, " ", a, "\n");
fmt.Println(u64, t, a);