mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
Fix options module to use new import name
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
##
|
||||
## .. code-block:: nim
|
||||
##
|
||||
## import optionals
|
||||
## import options
|
||||
##
|
||||
## proc find(haystack: string, needle: char): Option[int] =
|
||||
## for i, c in haystack:
|
||||
@@ -156,7 +156,7 @@ proc `$`*[T]( self: Option[T] ): string =
|
||||
when isMainModule:
|
||||
import unittest, sequtils
|
||||
|
||||
suite "optionals":
|
||||
suite "options":
|
||||
# work around a bug in unittest
|
||||
let intNone = none(int)
|
||||
let stringNone = none(string)
|
||||
|
||||
Reference in New Issue
Block a user