Skip to content

Commit 2345412

Browse files
committed
---
yaml --- r: 14256 b: refs/heads/try c: e360ddb h: refs/heads/master v: v3
1 parent 5ee4033 commit 2345412

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: 092c244d3a8ff32a323e08de9c166144e06233a5
5+
refs/heads/try: e360ddbd65e2501028f80e17a1ec7ad92904f39c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/iter.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ impl<A> of iterable<A> for option<A> {
3333
}
3434
}
3535

36+
impl of iterable<char> for str {
37+
fn iter(blk: fn(&&char)) {
38+
str::chars_iter(self) { |ch| blk(ch) }
39+
}
40+
}
41+
3642
fn enumerate<A,IA:iterable<A>>(self: IA, blk: fn(uint, A)) {
3743
let i = 0u;
3844
self.iter {|a|

0 commit comments

Comments
 (0)