summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-29 14:47:43 +0100
committerAraq <rumpf_a@web.de>2014-03-29 14:47:43 +0100
commit3afb42496b1dd9ca1c8a0c31bbf53f82e4a2b39d (patch)
tree3a2c7da7ec06c0d1ebdcef31adc39471ed6b3541 /lib
parentf50575d147132dc6d8d368b7c43f8da81326c814 (diff)
parent05421cf84b2b87f9d582437ce039ee6ad75f9d45 (diff)
downloadNim-3afb42496b1dd9ca1c8a0c31bbf53f82e4a2b39d.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/algorithm.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/pure/algorithm.nim b/lib/pure/algorithm.nim
index 49d1ac972..37fbc948c 100644
--- a/lib/pure/algorithm.nim
+++ b/lib/pure/algorithm.nim
@@ -64,10 +64,11 @@ proc lowerBound*[T](a: openarray[T], key: T, cmp: proc(x,y: T): int {.closure.})
   ## `cmp` is the comparator function to use, the expected return values are the same as
   ## that of system.cmp
   ## 
-  ## example:
-  ## `var arr = @[1,2,3,5,6,7,8,9]`
-  ## `arr.insert(4, arr.lowerBound(4))`
-  ## after running the above arr is `[1,2,3,4,5,6,7,8,9]`
+  ## example::
+  ##
+  ##   var arr = @[1,2,3,5,6,7,8,9]
+  ##   arr.insert(4, arr.lowerBound(4))
+  ## `after running the above arr is `[1,2,3,4,5,6,7,8,9]`
   result = a.low
   var pos = result
   var count, step: int