Created
November 2, 2015 07:21
-
-
Save NetguruGist/138325f6d6df4b7313ab to your computer and use it in GitHub Desktop.
error2 swift
This file contains hidden or 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 { | |
| guard divisor != 0.0 else { | |
| 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