Skip to content

Commit 357d866

Browse files
author
Reed Es
committed
init?() now fails on nonsense input
1 parent 14b80c0 commit 357d866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _SwiftNiceScale_ is part of the [OpenAlloc](https://github.com/openalloc) family
1313
<img src="https://github.com/openalloc/SwiftNiceScale/blob/main/Images/naive_nice.png" width="525" height="160"/>
1414

1515
```swift
16-
let ns = NiceScale(105...543, desiredTicks: 5)
16+
let ns = NiceScale(105...543, desiredTicks: 5)!
1717

1818
print("nice range=\(ns.range)")
1919

0 commit comments

Comments
 (0)