diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-12-13 12:20:46 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-12-13 14:53:14 -0800 |
| commit | cd0e57d2d4dca04308722b37cd0572c2db54deaa (patch) | |
| tree | c85113af1588090196e3a0d1549e33b1628dd792 /src | |
| parent | 21cf9c86987d6aba0075307d80014e5418eab10f (diff) | |
| download | rust-cd0e57d2d4dca04308722b37cd0572c2db54deaa.tar.gz rust-cd0e57d2d4dca04308722b37cd0572c2db54deaa.zip | |
stdlib: Fix spelling errors in documentation of libstd/str.rs
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/str.rs | 12 | ||||
| m--------- | src/llvm | 0 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 521dc33758e..7a9d3396c1b 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -66,7 +66,7 @@ const tag_six_b: uint = 252u; /* Function: is_utf8 -Determines if a vector uf bytes contains valid UTF-8 +Determines if a vector of bytes contains valid UTF-8 */ fn is_utf8(v: [u8]) -> bool { let i = 0u; @@ -546,7 +546,7 @@ needle - The string to look for Returns: -The index of the first occurance of `needle`, or -1 if not found. +The index of the first occurrence of `needle`, or -1 if not found. */ fn find(haystack: str, needle: str) -> int { let haystack_len: int = byte_len(haystack) as int; @@ -723,11 +723,11 @@ fn push_bytes(&s: str, bytes: [u8]) { /* Function: split -Split a string at each occurance of a given separator +Split a string at each occurrence of a given separator Returns: -A vector containing all the strings between each occurance of the separator +A vector containing all the strings between each occurrence of the separator */ fn split(s: str, sep: u8) -> [str] { let v: [str] = []; @@ -795,7 +795,7 @@ fn to_upper(s: str) -> str { /* Function: replace -Replace all occurances of one string with another +Replace all occurrences of one string with another Parameters: @@ -805,7 +805,7 @@ to - The replacement string Returns: -The original string with all occurances of `from` replaced with `to` +The original string with all occurrences of `from` replaced with `to` */ fn replace(s: str, from: str, to: str) : is_not_empty(from) -> str { // FIXME (694): Shouldn't have to check this diff --git a/src/llvm b/src/llvm -Subproject dc6b4306ad94ccaa6e400160e3e5ef33abff2f9 +Subproject 80b1ae92922202c197078038c4229045cb1e295 |
