File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,21 +62,21 @@ a, b := tup.Values()
62
62
Tuples implement the ` Stringer ` and ` GoStringer ` interfaces.
63
63
64
64
``` go
65
- fmt.Println (" %s " , tuple.New2 (" hello" , " world" ))
65
+ fmt.Printf (" %s \n " , tuple.New2 (" hello" , " world" ))
66
66
// Output:
67
67
// ["hello" "world"]
68
68
69
- fmt.Println (" %#v " , tuple.New2 (" hello" , " world" ))
69
+ fmt.Printf (" %#v \n " , tuple.New2 (" hello" , " world" ))
70
70
// Output:
71
71
// tuple.T2[string, string]{V1: "hello", V2: "world"}
72
72
```
73
73
74
74
# Notes
75
75
76
- The tuples code and test code are generated by the ` scripts/gen/main.go ` script.
76
+ The tuple code and test code are generated by the ` scripts/gen/main.go ` script.
77
77
78
- The generation works by reading ` tuple.tpl ` and ` tuple_test.tpl ` using Go's ` text/template ` engine.
79
- ` tuple.tpl ` and ` tuple_test.tpl ` detail the templated content of a generic tuple class, with variable number of elements.
78
+ Generation works by reading ` tuple.tpl ` and ` tuple_test.tpl ` using Go's ` text/template ` engine.
79
+ ` tuple.tpl ` and ` tuple_test.tpl ` contain the templated content of a generic tuple class, with variable number of elements.
80
80
81
81
# Contributing
82
82
You can’t perform that action at this time.
0 commit comments