summary refs log tree commit diff stats
path: root/tests/stdlib/twrapnils.nim
diff options
context:
space:
mode:
authorAditya Siram <aditya.siram@gmail.com>2021-07-07 21:21:30 -0500
committerGitHub <noreply@github.com>2021-07-08 10:21:30 +0800
commit2d758795f05d8edf567011eeb49f0cdd38b6dc13 (patch)
tree9b2b2b392b3dd7027bda9a735ad2c8fca64f55ec /tests/stdlib/twrapnils.nim
parentffce6de84c94348dd5a615c9855a14ed64807449 (diff)
downloadNim-2d758795f05d8edf567011eeb49f0cdd38b6dc13.tar.gz
Rename test variable due to unfortunate connotations (#18453)
Diffstat (limited to 'tests/stdlib/twrapnils.nim')
-rw-r--r--tests/stdlib/twrapnils.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stdlib/twrapnils.nim b/tests/stdlib/twrapnils.nim
index 1a66f4cd9..a0549c1bc 100644
--- a/tests/stdlib/twrapnils.nim
+++ b/tests/stdlib/twrapnils.nim
@@ -23,7 +23,7 @@ proc main() =
       x8: seq[int]
       x9: ref Bar
 
-    type Gook = ref object
+    type Goo = ref object
       foo: Foo
 
     proc fun(a: Bar): auto = a.b2
@@ -39,7 +39,7 @@ proc main() =
     var a3 = Foo(x1: 1.2, x3: "abc")
     a3.x2 = a3
 
-    var gook = Gook(foo: a)
+    var goo = Goo(foo: a)
 
     proc initFoo(x1: float): auto =
       witness.inc
@@ -53,8 +53,8 @@ proc main() =
     doAssert a3.x2.x2.x3.len == 3
 
     doAssert ?.a.x2.x2.x3[1] == default(char)
-    # here we only apply wrapnil around gook.foo, not gook (and assume gook is not nil)
-    doAssert ?.(gook.foo).x2.x2.x1 == 0.0
+    # here we only apply wrapnil around goo.foo, not goo (and assume goo is not nil)
+    doAssert ?.(goo.foo).x2.x2.x1 == 0.0
 
     when nimvm: discard
     else: