diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-04-18 16:59:16 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-04-23 09:10:24 +0700 |
| commit | fb1ae01fd7c0997c356f928793584cbf49135399 (patch) | |
| tree | d398af7f3d1dcdc5df04c2309e51a1391b0902c5 /lib/strings/string_example_test.go | |
| parent | ca478decceae6da66eb4efe3a8ae63bad1d6a1ec (diff) | |
| download | pakakeh.go-fb1ae01fd7c0997c356f928793584cbf49135399.tar.xz | |
strings: add white space to Split example
Show that the Split function will split the string no matter how many
spaces in them.
Diffstat (limited to 'lib/strings/string_example_test.go')
| -rw-r--r-- | lib/strings/string_example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings/string_example_test.go b/lib/strings/string_example_test.go index 5ea17c9c..5b8f6847 100644 --- a/lib/strings/string_example_test.go +++ b/lib/strings/string_example_test.go @@ -38,7 +38,7 @@ func ExampleMergeSpaces() { } func ExampleSplit() { - line := `a b c [A] B C` + line := `a b c [A] B C` fmt.Printf("%s\n", Split(line, false, false)) fmt.Printf("%s\n", Split(line, true, false)) fmt.Printf("%s\n", Split(line, false, true)) |
