From 56fa94fce7b16daf6d6449d31ecb65786894332f Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 3 Feb 2024 11:11:54 -0500 Subject: [PATCH] fixed error string grammar --- cmd/playground/wallArea.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/playground/wallArea.go b/cmd/playground/wallArea.go index 7aad9c2..332cf15 100644 --- a/cmd/playground/wallArea.go +++ b/cmd/playground/wallArea.go @@ -5,10 +5,10 @@ import "fmt" func paintNeeded(width float64, height float64) (paintNeededCalculated float64, anError error) { area := width * height if width < 0.0 { - return 0, fmt.Errorf("a width of %0.2f is invalid.", width) + return 0, fmt.Errorf("a width of %0.2f is invalid", width) } if height < 0.0 { - return 0, fmt.Errorf("a height of %0.2f is invalid.", height) + return 0, fmt.Errorf("a height of %0.2f is invalid", height) } return area / 10.0, nil }