summary refs log tree commit diff stats
path: root/tests/closure
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/closure
parent1869826668e2e3a0fd69cc1b69fb12b07993e417 (diff)
downloadNim-9df195ef581879cf9e5c3c3154755bd1dba677c6.tar.gz
style usages part one (openarray => openArray) (#19321)
* style usages (openArray)

* revert doc changes
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tclosure.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/closure/tclosure.nim b/tests/closure/tclosure.nim
index 546d7026d..8ae6c44bb 100644
--- a/tests/closure/tclosure.nim
+++ b/tests/closure/tclosure.nim
@@ -38,10 +38,10 @@ joinable: false
 
 
 block tclosure:
-  proc map(n: var openarray[int], fn: proc (x: int): int {.closure}) =
+  proc map(n: var openArray[int], fn: proc (x: int): int {.closure}) =
     for i in 0..n.len-1: n[i] = fn(n[i])
 
-  proc each(n: openarray[int], fn: proc(x: int) {.closure.}) =
+  proc each(n: openArray[int], fn: proc(x: int) {.closure.}) =
     for i in 0..n.len-1:
       fn(n[i])