diff options
Diffstat (limited to 'src/libcollectionstest/string.rs')
| -rw-r--r-- | src/libcollectionstest/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |
