Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
2f5a5be2
Commit
2f5a5be2
authored
Jan 04, 2011
by
Roger Peppe
Committed by
Rob Pike
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strings: fix description of FieldsFunc
R=r CC=golang-dev
https://golang.org/cl/3814041
parent
8184778a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pkg/strings/strings.go
src/pkg/strings/strings.go
+2
-2
No files found.
src/pkg/strings/strings.go
View file @
2f5a5be2
...
...
@@ -215,8 +215,8 @@ func Fields(s string) []string {
}
// FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c)
// and returns an array of slices of s. If
no code points in s satisfy f(c), an empty slic
e
// is returned.
// and returns an array of slices of s. If
all code points in s satisfy f(c) or th
e
//
string is empty, an empty slice
is returned.
func
FieldsFunc
(
s
string
,
f
func
(
int
)
bool
)
[]
string
{
// First count the fields.
n
:=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment