From bec64090a70a25c75b1856cf35dcdcf20993f8f8 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Thu, 13 Aug 2015 14:02:00 +0200 Subject: Rename String::into_boxed_slice -> into_boxed_str MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the name that was decided in rust-lang/rfcs#1152, and it's better if we say “boxed str” for `Box`. The old name `String::into_boxed_slice` is deprecated. --- src/libcollectionstest/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcollectionstest/string.rs') diff --git a/src/libcollectionstest/string.rs b/src/libcollectionstest/string.rs index 80283741ccc..69553bff0e1 100644 --- a/src/libcollectionstest/string.rs +++ b/src/libcollectionstest/string.rs @@ -366,9 +366,9 @@ fn test_extend_ref() { } #[test] -fn test_into_boxed_slice() { +fn test_into_boxed_str() { let xs = String::from("hello my name is bob"); - let ys = xs.into_boxed_slice(); + let ys = xs.into_boxed_str(); assert_eq!(&*ys, "hello my name is bob"); } -- cgit 1.4.1-3-g733a5