Skip to content

Commit 00fb10b

Browse files
committed
---
yaml --- r: 12235 b: refs/heads/master c: 6e8cf93 h: refs/heads/master i: 12233: 073d248 12231: 6308340 v: v3
1 parent 8b6b69a commit 00fb10b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8641c95221786d13c5e91f1d78c9d0158c376438
2+
refs/heads/master: 6e8cf935db93b92638b36dbb787f7c6e11be65ad
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/str.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,12 @@ impl extensions for str {
17611761
#[doc = "Returns true if one string contains another"]
17621762
#[inline]
17631763
fn contains(needle: str) -> bool { contains(self, needle) }
1764+
#[doc = "Iterate over the bytes in a string"]
1765+
#[inline]
1766+
fn each(it: fn(u8) -> bool) { each(self, it) }
1767+
#[doc = "Iterate over the chars in a string"]
1768+
#[inline]
1769+
fn each_char(it: fn(char) -> bool) { each_char(self, it) }
17641770
#[doc = "Returns true if one string ends with another"]
17651771
#[inline]
17661772
fn ends_with(needle: str) -> bool { ends_with(self, needle) }

0 commit comments

Comments
 (0)