Skip to content

Commit 4aad0c8

Browse files
author
Kristoffer Carlsson
authored
fix resize! on PushVector to be consistent with Base (#306)
1 parent 55f8500 commit 4aad0c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pushvector.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ function Base.resize!(v::PushVector, l::Integer)
2929
# Only support shrinking for now, since that is all we need
3030
@assert l <= v.l
3131
v.l = l
32+
return v
3233
end

0 commit comments

Comments
 (0)