diff --git a/src/kicad_sexpr/token.gleam b/src/kicad_sexpr/token.gleam index 345d937..20ec796 100644 --- a/src/kicad_sexpr/token.gleam +++ b/src/kicad_sexpr/token.gleam @@ -302,14 +302,14 @@ pub fn fill(then next: NextFn(Fill, a)) -> Decoder(a) { } pub type Size { - Size(height: Float, width: Float) + Size(width: Float, height: Float) } pub fn size(then next: NextFn(Size, a)) -> Decoder(a) { decode.token(named: "size", then: next, with: { - use height <- decode.float() use width <- decode.float() - decode.success(Size(height:, width:)) + use height <- decode.float() + decode.success(Size(width:, height:)) }) }