Skip to content

Commit 2063374

Browse files
committed
Adjust documentation
1 parent 94b2383 commit 2063374

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/lib.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
//! to the heap for larger allocations. This can be a useful optimization for improving cache
99
//! locality and reducing allocator traffic for workloads that fit within the inline buffer.
1010
//!
11-
//! ## no_std support
11+
//! ## `alloc` support
1212
//!
13-
//! By default, `smallvec` depends on `libstd`. However, it can be configured to use the unstable
14-
//! `liballoc` API instead, for use on platforms that have `liballoc` but not `libstd`. This
15-
//! configuration is currently unstable and is not guaranteed to work on all versions of Rust.
16-
//!
17-
//! To depend on `smallvec` without `libstd`, use `default-features = false` in the `smallvec`
18-
//! section of Cargo.toml to disable its `"alloc"` feature.
13+
//! By default, `smallvec` uses the `alloc` crate, which means that it can be used on platforms
14+
//! that have `liballoc` but not `libstd`.
1915
//!
2016
//! ## `union` feature
2117
//!

0 commit comments

Comments
 (0)