Skip to content

Commit

Permalink
Make README example work (#344)
Browse files Browse the repository at this point in the history
It never was updated to follow the signature change.
  • Loading branch information
workingjubilee committed Mar 20, 2024
1 parent 5522939 commit febe8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -28,7 +28,7 @@ rust-smallvec
use smallvec::{SmallVec, smallvec};

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

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

0 comments on commit febe8b0

Please sign in to comment.