We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9153f commit 7873db5Copy full SHA for 7873db5
src/compiler/crystal/syntax/ast.cr
@@ -748,7 +748,7 @@ module Crystal
748
# Returns `true` if this call has any arguments.
749
#
750
# Does not consider a block, only block argument.
751
- # `foo {}` would be `true`, but `foo(&x)` would be false.
+ # `foo {}` would be `false`, but `foo(&x)` would be `true`.
752
def has_any_args?
753
args.present? || !named_args.nil? || !block_arg.nil?
754
end
0 commit comments