diff --git a/rubocop/code_reuse_helpers.rb b/rubocop/code_reuse_helpers.rb
index 0929a55d901342e03370f619129ac0ee34cca976..63019c439438d0c225a97c3ba95cc9cae5b686be 100644
--- a/rubocop/code_reuse_helpers.rb
+++ b/rubocop/code_reuse_helpers.rb
@@ -25,7 +25,7 @@ def file_path_for_node(node)
 
     # Returns the name of a constant node.
     #
-    # Given the AST node `(const nil :Foo)`, this method will return `:Foo`.
+    # Given the AST node `(const nil? :Foo)`, this method will return `:Foo`.
     def name_of_constant(node)
       node.children[1]
     end
@@ -87,7 +87,7 @@ def in_directory?(node, directory)
 
     # Returns the receiver name of a send node.
     #
-    # For the AST node `(send (const nil :Foo) ...)` this would return
+    # For the AST node `(send (const nil? :Foo) ...)` this would return
     # `'Foo'`.
     def name_of_receiver(node)
       name_of_constant(node.children.first).to_s