about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-05-19 03:33:17 +0200
committerUlrik Sverdrup <root@localhost>2015-05-19 03:33:17 +0200
commit4e4374b7de0beec459f6d9db8e06f2cad0c969e7 (patch)
treeb0f1e553dc26cdd66b1af1ef233c5dd2fc571abc /src/test/codegen/stack-alloc-string-slice.rs
parent4daa62a55f906bd7ec7ad265cb23d49d9d0db66a (diff)
downloadrust-4e4374b7de0beec459f6d9db8e06f2cad0c969e7.tar.gz
rust-4e4374b7de0beec459f6d9db8e06f2cad0c969e7.zip
collections: Avoid unstable code in examples for String
Prefer String::from over from_str; String::from_str is unstable while
String::from is stable. Promote the latter by using it in examples.

Simply migrating unstable function to the closest alternative.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions