Skip to content

Commit f09a285

Browse files
committed
Update docs for v2 syntax
1 parent be38544 commit f09a285

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rust-smallvec
2828
use smallvec::{SmallVec, smallvec};
2929

3030
// This SmallVec can hold up to 4 items on the stack:
31-
let mut v: SmallVec<[i32; 4]> = smallvec![1, 2, 3, 4];
31+
let mut v: SmallVec<i32, 4> = smallvec![1, 2, 3, 4];
3232

3333
// It will automatically move its contents to the heap if
3434
// contains more than four items:

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//!
2424
//! ### `write`
2525
//!
26-
//! When this feature is enabled, `SmallVec<[u8; _]>` implements the `std::io::Write` trait.
26+
//! When this feature is enabled, `SmallVec<u8, _>` implements the `std::io::Write` trait.
2727
//! This feature is not compatible with `#![no_std]` programs.
2828
//!
2929
//! ### `specialization`

0 commit comments

Comments
 (0)