# Is resize! always in-place?

**URL:** <https://discourse.julialang.org/t/is-resize-always-in-place/67196>\
**Category:** General Usage\
**Tags:** vector\
**Created:** [August 27, 2021, 10:52pm UTC](https://discourse.julialang.org/t/is-resize-always-in-place/67196 "2021-08-27T22:52:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)\
**Post date:** [August 27, 2021, 10:59pm UTC](https://discourse.julialang.org/t/is-resize-always-in-place/67196/2 "2021-08-27T22:59:44Z")

</div>

The specific situation where this is particularly relevant is [Resize arrays in mutable structs](https://discourse.julialang.org/t/resize-arrays-in-mutable-structs/49701). If the return value of `resize!` cannot be ignored, then @rdeits [comment](https://discourse.julialang.org/t/resize-arrays-in-mutable-structs/49701/6) is not quite right: you wouldn’t be able to resize a vector contained in a struct that’s not mutable (even though the compiler won’t complain about it)

---

_[View the full topic](https://discourse.julialang.org/t/is-resize-always-in-place/67196)._
