]> git.lizzy.rs Git - rust.git/commit
Clarify that VecDeque::swap can panic
authorDavid Ross <daboross@daboross.net>
Sun, 27 Aug 2017 10:22:53 +0000 (03:22 -0700)
committerGitHub <noreply@github.com>
Sun, 27 Aug 2017 10:22:53 +0000 (03:22 -0700)
commitf1b91f4037dc4b3e70912e5a5082be969ddd8e75
treed02729567bd78267e2133cb5f32d88016ec69059
parent93cdf5e3c45a0578c79afe8563065d07e5f6984f
Clarify that VecDeque::swap can panic

The previous documentation mentioned this, but ambiguously used the term "fail".

This clarifies that the function will panic if the index is out of bounds, instead of silently failing and not doing anything.
src/liballoc/vec_deque.rs