diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-08-13 14:02:00 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-08-13 14:02:00 +0200 |
| commit | bec64090a70a25c75b1856cf35dcdcf20993f8f8 (patch) | |
| tree | f8f6a7980ef4e851a6cc7f92b7a617b546892940 /src/libcollectionstest/string.rs | |
| parent | f50518e05ab1fd7632b83c0c6675ec072d1685ea (diff) | |
| download | rust-bec64090a70a25c75b1856cf35dcdcf20993f8f8.tar.gz rust-bec64090a70a25c75b1856cf35dcdcf20993f8f8.zip | |
Rename String::into_boxed_slice -> into_boxed_str
This is the name that was decided in rust-lang/rfcs#1152, and it's better if we say “boxed str” for `Box<str>`. The old name `String::into_boxed_slice` is deprecated.
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"); } |
