summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-08 16:56:37 +0800
committerGitHub <noreply@github.com>2022-08-08 16:56:37 +0800
commit80a0dc295bab6d7699c0da13b6bc90f7243572e4 (patch)
tree168012347e589f481f15ec328f3aa70bb314d588 /lib/system
parent4f4501abbc3f59c52e978f02b115d2bb45869566 (diff)
downloadNim-80a0dc295bab6d7699c0da13b6bc90f7243572e4.tar.gz
update the docs of arc following up #19749 (#19752)
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/arc.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/arc.nim b/lib/system/arc.nim
index 17142b277..ccf9d44e2 100644
--- a/lib/system/arc.nim
+++ b/lib/system/arc.nim
@@ -28,8 +28,8 @@ ObjectA's ``name`` is "|ObjectA|RootObj|".
 ObjectB's ``name`` is "|ObjectB|ObjectA|RootObj|".
 
 Now to check for ``x of ObjectB`` we need to check
-for ``x.typ.name.hasSubstring("|ObjectB|")``. In the actual implementation,
-however, we could also use a
+for ``x.typ.name.endsWith("|ObjectB|ObjectA|RootObj|")``.
+In the actual implementation, however, we could also use a
 hash of ``package & "." & module & "." & name`` to save space.
 
 ]#