From 59976942eacd26c0cc37247c3ac0c78b97edc6ea Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 24 Sep 2014 23:41:09 +1200 Subject: Use slice syntax instead of slice_to, etc. --- src/test/debuginfo/vec-slices.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/debuginfo') diff --git a/src/test/debuginfo/vec-slices.rs b/src/test/debuginfo/vec-slices.rs index ba8c4d249ce..392a025b1f0 100644 --- a/src/test/debuginfo/vec-slices.rs +++ b/src/test/debuginfo/vec-slices.rs @@ -94,7 +94,7 @@ fn main() { let empty: &[i64] = &[]; let singleton: &[i64] = &[1]; let multiple: &[i64] = &[2, 3, 4, 5]; - let slice_of_slice = multiple.slice(1,3); + let slice_of_slice = multiple[1..3]; let padded_tuple: &[(i32, i16)] = &[(6, 7), (8, 9)]; -- cgit 1.4.1-3-g733a5