Format carbon test files (#1197)

This commit is contained in:
josh11b
2022-04-19 16:10:11 -07:00
committed by GitHub
parent 55b0a0e016
commit 958fb8e529
18 changed files with 22 additions and 31 deletions
@@ -22,13 +22,13 @@ class Point {
var y: i32;
impl Point as Vector {
fn Zero() -> Point {
return {.x = 0, .y = 0};
return {.x = 0, .y = 0};
}
fn Add[me: Point](b: Point) -> Point {
return {.x = me.x + b.x, .y = me.y + b.y};
return {.x = me.x + b.x, .y = me.y + b.y};
}
fn Scale[me: Point](v: i32) -> Point {
return {.x = me.x * v, .y = me.y * v};
return {.x = me.x * v, .y = me.y * v};
}
}
}