Skip to content

Conversation

remram44
Copy link
Contributor

Reported by Moonlightning on #rust

17:13 EDT < Moonlightning> I think I found a bug in the str::matches() documentation. Was it copied from str::split()? :p
17:13 EDT < Moonlightning> Because it says “The pattern can be a simple &str, char, or a closure that determines the split.”

I changed "determines the split" to "determines if a character matches".

It's not super clear, "determines the split" is not super clear to begin with, maybe this can be made better? On the other hand following the link to Pattern provides enough details.

@rust-highfive
Copy link
Contributor

r? @gankro

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 30fbf44

Thanks!

@bors
Copy link
Collaborator

bors commented Sep 24, 2015

⌛ Testing commit 30fbf44 with merge 8fe79bd...

bors added a commit that referenced this pull request Sep 24, 2015
Reported by Moonlightning on #rust
> 17:13 EDT < Moonlightning> I think I found a bug in the str::matches() documentation. Was it copied from str::split()? :p
> 17:13 EDT < Moonlightning> Because it says “The pattern can be a simple `&str`, `char`, or a closure that determines the split.”

I changed "determines the split" to "determines if a character matches".

It's not super clear, "determines the split" is not super clear to begin with, maybe this can be made better? On the other hand following the link to Pattern provides enough details.
@bors bors merged commit 30fbf44 into rust-lang:master Sep 24, 2015
@remram44 remram44 deleted the doc-fix-str-pattern branch September 27, 2015 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants