mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-29 15:19:19 +00:00
9 lines
313 B
Markdown
9 lines
313 B
Markdown
# 字串
|
|
|
|
Rust 有兩種類型的字串:字串切片 (`&str`) 和 owned string (`String`)。
|
|
我們不會規定您應該何時使用哪一種,但我們會向您展示如何識別和創建它們,以及如何使用它們。
|
|
|
|
## 進一步了解
|
|
|
|
- [字串](https://doc.rust-lang.org/book/ch08-02-strings.html)
|