We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affd83e commit 3411d19Copy full SHA for 3411d19
src/libcore/vec.rs
@@ -409,13 +409,14 @@ fn pop<T>(&v: [const T]) -> T unsafe {
409
val
410
}
411
412
+#[inline]
413
/*
414
Function: push
415
-Append an element to a vector and return it
416
+Append an element to a vector
417
*/
418
fn push<T: copy>(&v: [T], initval: T) {
- grow(v, 1u, initval)
419
+ v += [initval];
420
421
422
// TODO: More.
0 commit comments