From 3f04932c2f2d34c8af8c9a6685d5694357b6e347 Mon Sep 17 00:00:00 2001 From: Lily Rose Date: Sat, 26 Jul 2025 01:25:46 +1000 Subject: [PATCH] Fix width and height order for size token --- src/kicad_sexpr/token.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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:)) }) }