From f091a9288576e59ed69f4e2c0b40c5bd77c3c164 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Oct 2023 17:49:58 +1000 Subject: [PATCH] Update introduction.md (#359) --- concepts/custom-types/introduction.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/concepts/custom-types/introduction.md b/concepts/custom-types/introduction.md index 39dbcb85c..577e670b8 100644 --- a/concepts/custom-types/introduction.md +++ b/concepts/custom-types/introduction.md @@ -43,10 +43,10 @@ Custom type variants can be pattern matched on using case expressions. import gleam/int import gleam/float -pub fn describe(number: Number) -> String { - case flexibleNumber { - SomeFloat(f) -> "Float: " ++ float.to_string(f) - SomeInt(i) -> "Int: " ++ int.to_string(i) +pub fn describe(flexible_number: Number) -> String { + case flexible_number { + SomeFloat(f) -> "Float: " <> float.to_string(f) + SomeInt(i) -> "Int: " <> int.to_string(i) Invalid -> "Neither a float nor an int" } }