Skip to content

Commit

Permalink
shapes: run vfmt on file
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 1, 2023
1 parent 0dfe60a commit 1ec0e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shapes.v
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ pub fn (s &Size) to_rect() Rect {
}

// to_vec2 converts `Size` to `Vec2[f32]` with `x` and `y` fields equal to `width` and `height`.
pub fn (s &Size) to_vec2() vec.Vec2[f32] {
return vec.Vec2{
pub fn (s &Size) to_vec2() Vec2[f32] {
return Vec2{
x: s.width
y: s.height
}
Expand Down

0 comments on commit 1ec0e3b

Please sign in to comment.