mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-05 00:00:12 +00:00
320 B
320 B
Strings
Rust has two string types, a string slice (&str
) and an owned string (String
).
We're not going to dictate when you should use which one, but we'll show you how
to identify and create them, as well as use them.