rust_mutable_param.rs (Source)

1
2
3
fn foo(mut t: f32) {
    t += 2.0;
}