diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-05-19 03:33:17 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-05-19 03:33:17 +0200 |
| commit | 4e4374b7de0beec459f6d9db8e06f2cad0c969e7 (patch) | |
| tree | b0f1e553dc26cdd66b1af1ef233c5dd2fc571abc /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | 4daa62a55f906bd7ec7ad265cb23d49d9d0db66a (diff) | |
| download | rust-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
