What, no syntax for mutable borrowed region pointers?

This commit is contained in:
Ben Striegel 2013-01-29 22:41:04 -05:00
parent 743c1c37e8
commit cc3bb7b68a

View file

@ -280,12 +280,8 @@ pub pure fn view<T>(v: &r/[T], start: uint, end: uint) -> &r/[T] {
}
/// Return a slice that points into another slice.
<<<<<<< HEAD
#[inline(always)]
pub pure fn mut_view<T>(v: &r/[mut T], start: uint, end: uint) -> &r/[mut T] {
=======
pub pure fn mut_view<T>(v: &mut r/[T], start: uint, end: uint) -> &mut r/[T] {
>>>>>>> RIMOV, round 11
assert (start <= end);
assert (end <= len(v));
do as_mut_buf(v) |p, _len| {