-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dongle dunkey #8
base: main
Are you sure you want to change the base?
Conversation
Correct fibonacci
…-101 into DongleDunkey
unit1/exercises/e3/main.go
Outdated
type ErrNegativeSqrt float64 | ||
|
||
func (e ErrNegativeSqrt) Error() string { | ||
return fmt.Sprintln("cannot Sqrt negative number: -2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There must be no new line in such functions, only one line string. Also the actual number must be returned instead of hardcoded value.
fmt.Sprintf is the best option here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct it on 1ecacf5
As a part of this exercise, I found myself with the cast :)
No description provided.