diff options
| author | bors <bors@rust-lang.org> | 2013-04-19 22:12:52 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-19 22:12:52 -0700 |
| commit | e67f1c0fd229ab9f106c17f3b690dc6059eaeef0 (patch) | |
| tree | 7027a88f7b8c7a1064dd36e91c36a4f5b8861b15 /src/rt/rust_run_program.cpp | |
| parent | 047ba2642f39baa60c13aa0318ddcb09d9ca5301 (diff) | |
| parent | a1a9326c6d71cb7f3b678f4047a1e958318dd337 (diff) | |
| download | rust-e67f1c0fd229ab9f106c17f3b690dc6059eaeef0.tar.gz rust-e67f1c0fd229ab9f106c17f3b690dc6059eaeef0.zip | |
auto merge of #5968 : gifnksm/rust/windowed, r=brson
vec::windowed fails if given window size is greater than vector length + 1.
```rust
for vec::windowed(7, &[1,2,3,4,5,6]) |vs| { fail!(); } // => do nothing
for vec::windowed(8, &[1,2,3,4,5,6]) |vs| { fail!(); } // => assertion failure in vec::slice
```
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
