File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 98447f523603ce8ca5a258f216f6fcbd90fe114f
5
+ refs/heads/try: 669ff690fda44b83abf5c064788dc4fa2beb5c0f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -1074,10 +1074,8 @@ pure fn len_bytes(s: str) -> uint unsafe {
1074
1074
// Function: len
1075
1075
//
1076
1076
// String length or size in characters.
1077
- // (Synonym: len_chars)
1078
- fn len ( s : str ) -> uint {
1079
- substr_len_chars ( s, 0 u, len_bytes ( s) )
1080
- }
1077
+ // (Synonym: len_bytes)
1078
+ fn len ( s : str ) -> uint { len_bytes ( s) }
1081
1079
1082
1080
fn len_chars ( s : str ) -> uint {
1083
1081
substr_len_chars ( s, 0 u, len_bytes ( s) )
You can’t perform that action at this time.
0 commit comments