Dionysusnu / rbxts-rust-classes

Typescript implementations of Rust's std types
Mozilla Public License 2.0
7 stars 5 forks source link

Fix Iterator.count() incrementing number result by 1 #5

Closed rimuy closed 2 years ago

rimuy commented 2 years ago

The result from iterator's count method is always being incremented by 1. Looks like the code in do while is being executed before its assertion.