1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:20:04 +08:00
SpaceVim/bundle/nvim-treesitter/tests/indent/rust/cond.rs
2022-04-14 12:01:23 +08:00

18 lines
225 B
Rust
Vendored

fn foo(mut x: i32) -> i32 {
if x > 10 {
return 10;
} else if x == 10 {
return 9;
} else {
x += 10;
}
if x < 0 {
if x == -1 {
return 0;
}
}
0
}