diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-09-26 21:35:42 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-10-01 20:44:30 -0700 |
| commit | 8fc3088b2aba397c0f561ce978b2d4a47f8a9eab (patch) | |
| tree | 5df5d2dce591686d740d46fdc54545e2e4fd3bc4 /src/libcore/uint-template.rs | |
| parent | 81423a3866fb6cd4cadd28ed49273d7e22d48c17 (diff) | |
rename vec::raw::form_slice to buf_as_slice
This matches the str::raw function.
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index eb58d17c5f1..7d0421c0730 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -226,8 +226,7 @@ pub pure fn to_str_bytes<U>(neg: bool, num: T, radix: uint, *ptr::mut_offset(mp, i) = '-' as u8; } - vec::raw::form_slice(ptr::offset(p, i), - len - i, f) + vec::raw::buf_as_slice(ptr::offset(p, i), len - i, f) } } } |
