Skip to content

Commit

Permalink
Merge pull request JuliaLang#9373 from davidssmith/resize
Browse files Browse the repository at this point in the history
explain resize! behavior; fixes JuliaLang#9313
  • Loading branch information
ivarne committed Dec 16, 2014
2 parents a297d5c + 38b8414 commit 27c9adb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,9 @@ Dequeues

.. function:: resize!(collection, n) -> collection

Resize collection to contain ``n`` elements.
Resize collection to contain ``n`` elements. If ``n`` is smaller than the current
collection length, the first ``n`` elements will be retained. If ``n`` is larger,
the new elements will not be initialized.

.. function:: append!(collection, items) -> collection.

Expand Down

0 comments on commit 27c9adb

Please sign in to comment.