Created
November 2, 2015 07:21
-
-
Save NetguruGist/fcc2face56f10553bb74 to your computer and use it in GitHub Desktop.
error1 swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func divide(dividend: Float, by divisor: Float) -> Float { | |
if divisor == 0.0 { | |
fatalError("Division by zero is not allowed") | |
} | |
return dividend / divisor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment