Skip to content

Commit 20e8316

Browse files
committed
Mention alloc too
1 parent 567a570 commit 20e8316

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/std.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ The common vocabulary types include:
2222

2323
<details>
2424

25-
* In fact, Rust contains two layers of the Standard Library: `core` and `std`.
25+
* In fact, Rust contains several layers of the Standard Library: `core`, `alloc` and `std`.
2626
* `core` includes the most basic types and functions that don't depend on `libc`, allocator or
27-
even a presense of the operating system.
28-
* Embedded Rust applications often only use `core`.
27+
even the presence of an operating system.
28+
* `alloc` includes types which require a global heap allocator, such as `Vec`, `Box` and `Arc`.
29+
* Embedded Rust applications often only use `core`, and sometimes `alloc`.
2930

3031
</details>

0 commit comments

Comments
 (0)