Skip to content

Commit c7c7a2b

Browse files
committed
Add rustfmt.toml
1 parent f6ac637 commit c7c7a2b

File tree

8 files changed

+1674
-1683
lines changed

8 files changed

+1674
-1683
lines changed

rustfmt.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hard_tabs = true

script/examples/vec2.bs

+4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ fn main()
33
#empty()
44
#args(1, 2)
55
length(0.5, 0.7)
6+
#length_squared(0.5, 0.7)
67
print(length(0.5, 0.7))
78
pass
89

910

1011
fn length(x, y)
1112
return (x * x + y * y).sqrt()
1213

14+
fn length_squared(x, y)
15+
return x * x + y * y
16+
1317
fn empty()
1418
pass
1519

0 commit comments

Comments
 (0)