Skip to content

Commit 328fc0b

Browse files
killerswanmarijnh
authored andcommitted
---
yaml --- r: 14436 b: refs/heads/try c: 669ff69 h: refs/heads/master v: v3
1 parent 5f1242e commit 328fc0b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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: 98447f523603ce8ca5a258f216f6fcbd90fe114f
5+
refs/heads/try: 669ff690fda44b83abf5c064788dc4fa2beb5c0f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/str.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,10 +1074,8 @@ pure fn len_bytes(s: str) -> uint unsafe {
10741074
// Function: len
10751075
//
10761076
// String length or size in characters.
1077-
// (Synonym: len_chars)
1078-
fn len(s: str) -> uint {
1079-
substr_len_chars(s, 0u, len_bytes(s))
1080-
}
1077+
// (Synonym: len_bytes)
1078+
fn len(s: str) -> uint { len_bytes(s) }
10811079

10821080
fn len_chars(s: str) -> uint {
10831081
substr_len_chars(s, 0u, len_bytes(s))

0 commit comments

Comments
 (0)