mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-08-22 22:16:14 +08:00
doc: Update rust.md (#994)
This commit is contained in:
@@ -349,7 +349,7 @@ println!("为开发者分享 {cs}");
|
||||
|
||||
```rust
|
||||
// 创建一个空字符串对象
|
||||
let my_string = String::new;
|
||||
let my_string = String::new();
|
||||
// 转换为字符串对象
|
||||
let S_string = a_string.to_string()
|
||||
// 创建一个初始化的字符串对象
|
||||
|
Reference in New Issue
Block a user