From fd5466aab521b19d99e85e56fbba2c95e9ed6dd3 Mon Sep 17 00:00:00 2001 From: Chris Dzombak Date: Thu, 2 May 2024 14:42:36 -0400 Subject: [PATCH] tweak example in README --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33dd8f0..4290812 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,18 @@ When making repeated comparisons with the same tolerance, having to pass the tol For example: ```go -equalityChecker := CurriedFloat64Equal(Tolerance1) +package main -equalityChecker(1.0, 1.1) // => false -equalityChecker(1.0, 1.01) // => true +import ( + wx "github.com/cdzombak/libwx" +) + +function main() { + equalityChecker := wx.CurriedFloat64Equal(Tolerance1) + + equalityChecker(1.0, 1.1) // => false + equalityChecker(1.0, 1.01) // => true +} ``` ## License