Skip to content

Commit 7cf1e06

Browse files
Update challenge-10/submissions/shansing/solution-template.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 06608bd commit 7cf1e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenge-10/submissions/shansing/solution-template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func NewTriangle(a, b, c float64) (*Triangle, error) {
8585
return nil, fmt.Errorf("a, b, c must be positive")
8686
}
8787
if a+b <= c || a+c <= b || b+c <= a {
88-
return nil, fmt.Errorf("not a valid trangle")
88+
return nil, fmt.Errorf("not a valid triangle")
8989
}
9090
return &Triangle{a, b, c}, nil
9191
}

0 commit comments

Comments
 (0)