From be41b773b4ad0e9d12cf434e0664d3be962bc066 Mon Sep 17 00:00:00 2001 From: Gears Date: Tue, 14 Apr 2026 21:22:39 +0100 Subject: [PATCH] Fix error in example --- README.md | 2 +- TODO.md | 1 + src/trick.gleam | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a50019..f39c011 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ pub fn main() { "radius_squared", trick.multiply_float(radius, radius), ) - trick.expression(trick.multiply_float(radius_squared), pi) + trick.expression(trick.multiply_float(radius_squared, pi)) }) }) trick.end_module() diff --git a/TODO.md b/TODO.md index 699444d..3b58732 100644 --- a/TODO.md +++ b/TODO.md @@ -23,3 +23,4 @@ Values marked with `*` are deprioritised and may be delayed until after v1. - Fix the API for generic types - Ensure types are correct if user accidentally shadows a variable +- Prevent generation of duplicate constructors, functions, constants, and types diff --git a/src/trick.gleam b/src/trick.gleam index fc6bf4f..f085531 100644 --- a/src/trick.gleam +++ b/src/trick.gleam @@ -15,7 +15,7 @@ //// "radius_squared", //// trick.multiply_float(radius, radius), //// ) -//// trick.expression(trick.multiply_float(radius_squared), pi) +//// trick.expression(trick.multiply_float(radius_squared, pi)) //// }) //// }) //// trick.end_module() -- 2.51.2