Skip to content

Commit 83c9d76

Browse files
author
Naupio Z.Y. Huang
authored
update qucikstart/vector-string.md
String is a Struct with a value vec:Vec<u8>.
1 parent 395959f commit 83c9d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quickstart/vector-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ let hello: &'static str = "Hello, world!";
6666
```
6767

6868
### String
69-
`String` 是一种堆内存申请的 `Vec<[u8]>` 类型,你可以理解为 `str` 类型的动态形式。
69+
`String` 是一个带有的 `vec:Vec<u8>` 成员的结构体,你可以理解为 `str` 类型的动态形式。
7070
它们的关系相当于 `[T]``Vec<T>` 的关系。
7171
显然 `String` 类型也有压入和弹出。
7272

0 commit comments

Comments
 (0)