Skip to content

Commit febe8b0

Browse files
Make README example work (#344)
It never was updated to follow the signature change.
1 parent 5522939 commit febe8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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:

0 commit comments

Comments
 (0)