Skip to content

Commit

Permalink
Add len to str extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorton committed Apr 6, 2012
1 parent 851fde8 commit d621ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/str.rs
Expand Up @@ -1783,6 +1783,9 @@ impl extensions for str {
"]
#[inline]
fn is_whitespace() -> bool { is_whitespace(self) }
#[inline]
#[doc ="Returns the size in bytes not counting the null terminator"]
fn len() -> uint { len(self) }
#[doc = "
Returns a slice of the given string from the byte range [`begin`..`end`)
Expand Down

0 comments on commit d621ada

Please sign in to comment.