Skip to content

Commit

Permalink
Implemented hint 2 (closes #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vanhoef authored and Peter Vanhoef committed Mar 25, 2017
1 parent 754a7dd commit c25f95d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Calculator/Calculator/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ class ViewController: UIViewController {
display.text = textCurrentlyInDisplay + digit
}
} else {
if digit == "." {
display.text = "0."
} else {
display.text = digit
}
display.text = (digit == ".") ? "0." : digit
userIsInTheMiddleOfTyping = true
}
}
Expand Down

0 comments on commit c25f95d

Please sign in to comment.