]> Cypherpunks repositories - gostls13.git/commit
regexp: add runnable example to regex.Split
authorSeth Hoenig <seth.a.hoenig@gmail.com>
Fri, 18 Sep 2015 04:26:39 +0000 (23:26 -0500)
committerAndrew Gerrand <adg@golang.org>
Wed, 23 Sep 2015 03:29:32 +0000 (03:29 +0000)
commit226aaf4267316cab7530b0dabe24e6c20787fab4
tree75e2d6f3f5e25377269dc9e9438446407805725a
parent143f3fd0ee71e6b015029b6792bc873b1013a8d4
regexp: add runnable example to regex.Split

The existing comment for regex.Split contains a plain text example,
while many of the other regex functions have runnable examples. This
change provides a runnable example for Split.

Change-Id: I5373f57f532fe843d7d0adcf4b513061ec797047
Reviewed-on: https://go-review.googlesource.com/14737
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/regexp/example_test.go