summary refs log tree commit diff stats
path: root/tests/showoff
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-01-04 20:29:50 +0800
committerGitHub <noreply@github.com>2022-01-04 13:29:50 +0100
commit9df195ef581879cf9e5c3c3154755bd1dba677c6 (patch)
tree71dc955a6976558b3cb47f98443093b388c1ce36 /tests/showoff
parent1869826668e2e3a0fd69cc1b69fb12b07993e417 (diff)
downloadNim-9df195ef581879cf9e5c3c3154755bd1dba677c6.tar.gz
style usages part one (openarray => openArray) (#19321)
* style usages (openArray)

* revert doc changes
Diffstat (limited to 'tests/showoff')
-rw-r--r--tests/showoff/tdrdobbs_examples.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/showoff/tdrdobbs_examples.nim b/tests/showoff/tdrdobbs_examples.nim
index 0e10c6dd8..c61e177dc 100644
--- a/tests/showoff/tdrdobbs_examples.nim
+++ b/tests/showoff/tdrdobbs_examples.nim
@@ -40,12 +40,12 @@ const msb3999 = mostSignificantBit(3999)
 
 echo msb3999, " ", mostSignificantBit(0), " ", square(44)
 
-proc filter[T](a: openarray[T], predicate: proc (x: T): bool): seq[T] =
+proc filter[T](a: openArray[T], predicate: proc (x: T): bool): seq[T] =
   result = @[] # @[] constructs the empty seq
   for x in a:
     if predicate(x): result.add(x)
 
-proc map[T, S](a: openarray[T], fn: proc (x: T): S): seq[S] =
+proc map[T, S](a: openArray[T], fn: proc (x: T): S): seq[S] =
   newSeq(result, a.len)
   for i in 0 ..< a.len: result[i] = fn(a[i])