summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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.
 
 ]#