summary refs log tree commit diff stats
path: root/lib/pure/optionals.nim
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-05-26 09:21:15 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-05-26 09:21:15 -0400
commitf9e95b29878e548c8adc4ac15d5880fa26843515 (patch)
treeb1c0293cfbf5ea8aa0426922f4523a77ce6d31b6 /lib/pure/optionals.nim
parentd3ab60c8310328b2838b42f0998515ddbb8a6ac4 (diff)
downloadNim-f9e95b29878e548c8adc4ac15d5880fa26843515.tar.gz
Amend optionals docstring
Diffstat (limited to 'lib/pure/optionals.nim')
-rw-r--r--lib/pure/optionals.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/optionals.nim b/lib/pure/optionals.nim
index d0d832f59..ef01e1260 100644
--- a/lib/pure/optionals.nim
+++ b/lib/pure/optionals.nim
@@ -97,7 +97,7 @@ proc isNone*[T](self: Option[T]): bool =
 
 
 proc unsafeGet*[T](self: Option[T]): T =
-  ## Returns the value of a `just`. Behavior is undefined for `none`.
+  ## Returns the value of a ``some``. Behavior is undefined for ``none``.
   assert self.isSome
   self.val
 
@@ -110,7 +110,7 @@ proc get*[T](self: Option[T]): T =
 
 
 proc `==`*(a, b: Option): bool =
-  ## Returns ``true`` if both ``Option``s are `none`,
+  ## Returns ``true`` if both ``Option``s are ``none``,
   ## or if they have equal values
   (a.has and b.has and a.val == b.val) or (not a.has and not b.has)