Skip to content

Commit e4e8771

Browse files
committed
---
yaml --- r: 15241 b: refs/heads/try c: 6e8cf93 h: refs/heads/master i: 15239: dc49fdd v: v3
1 parent be49b05 commit e4e8771

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8641c95221786d13c5e91f1d78c9d0158c376438
5+
refs/heads/try: 6e8cf935db93b92638b36dbb787f7c6e11be65ad
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)