std: fix the non-stage0 str::raw::slice_bytes which broke in a merge
This commit is contained in:
parent
6fcf2ee8e3
commit
e48ca19bc5
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ pub mod raw {
|
|||
/// If end is greater than the length of the string.
|
||||
#[cfg(not(stage0))]
|
||||
#[inline]
|
||||
pub unsafe fn slice_bytes(s: &str, begin: uint, end: uint) -> &str {
|
||||
pub unsafe fn slice_bytes<'a>(s: &'a str, begin: uint, end: uint) -> &'a str {
|
||||
do s.as_imm_buf |sbuf, n| {
|
||||
assert!((begin <= end));
|
||||
assert!((end <= n));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue