2024-06-10 18:41:25 +08:00

9 lines
310 B
Markdown

# 字串
Rust 有兩種類型的字串:字串切片 (`&str`) 和 owned string (`String`)。
我們不會規定您應該何時使用哪一種,但我們會向您展示如何識別和創建它們,以及如何使用它們。
## 更多資訊
- [字串](https://doc.rust-lang.org/book/ch08-02-strings.html)