Skip to content

Commit 20ef0e0

Browse files
committed
make Vec::new const :P
1 parent a2105b8 commit 20ef0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl<T> Vec<T> {
322322
/// ```
323323
#[inline]
324324
#[stable(feature = "rust1", since = "1.0.0")]
325-
pub fn new() -> Vec<T> {
325+
pub const fn new() -> Vec<T> {
326326
Vec {
327327
buf: RawVec::empty(),
328328
len: 0,

0 commit comments

Comments
 (0)