Fallout from stabilization
This commit is contained in:
parent
6e1879eaf1
commit
6abfac083f
78 changed files with 410 additions and 425 deletions
|
|
@ -151,7 +151,7 @@ impl String {
|
|||
let mut i = 0;
|
||||
let total = v.len();
|
||||
fn unsafe_get(xs: &[u8], i: uint) -> u8 {
|
||||
unsafe { *xs.unsafe_get(i) }
|
||||
unsafe { *xs.get_unchecked(i) }
|
||||
}
|
||||
fn safe_get(xs: &[u8], i: uint, total: uint) -> u8 {
|
||||
if i >= total {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue