This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
11 lines
209 B
Rust
11 lines
209 B
Rust
|
|
|
|
fn main() {
|
|
let pi = 3.1415927;
|
|
log -pi * (pi + 2.0 / pi) - pi * 5.0;
|
|
if pi == 5.0 || pi < 10.0 || pi <= 2.0 || pi != 22.0 / 7.0 || pi >= 10.0
|
|
|| pi > 1.0 {
|
|
log "yes";
|
|
}
|
|
}
|