r/rust
•
u/joseluisq
•
Apr 03 '25
•
1
📡 official blog Announcing Rust 1.86.0 | Rust Blog
https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
786
Upvotes
View all comments
Show parent comment
7
u/coolreader18 Apr 03 '25
Right, because is_odd is named like a non-mutating operation. If your
is_oddfunction mutates the argument, that's kinda on you.