Fix options module to use new import name

This commit is contained in:
def 2015-11-23 16:30:18 +01:00
commit 93e01da671

View file

@ -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)