Fix options module to use new import name
This commit is contained in:
parent
7540cdd169
commit
93e01da671
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
##
|
##
|
||||||
## import optionals
|
## import options
|
||||||
##
|
##
|
||||||
## proc find(haystack: string, needle: char): Option[int] =
|
## proc find(haystack: string, needle: char): Option[int] =
|
||||||
## for i, c in haystack:
|
## for i, c in haystack:
|
||||||
|
|
@ -156,7 +156,7 @@ proc `$`*[T]( self: Option[T] ): string =
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
import unittest, sequtils
|
import unittest, sequtils
|
||||||
|
|
||||||
suite "optionals":
|
suite "options":
|
||||||
# work around a bug in unittest
|
# work around a bug in unittest
|
||||||
let intNone = none(int)
|
let intNone = none(int)
|
||||||
let stringNone = none(string)
|
let stringNone = none(string)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue