Skip to content

Commit 7873db5

Browse files
Update src/compiler/crystal/syntax/ast.cr
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
1 parent ed9153f commit 7873db5

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/crystal/syntax

1 file changed

+1
-1
lines changed

src/compiler/crystal/syntax/ast.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ module Crystal
748748
# Returns `true` if this call has any arguments.
749749
#
750750
# Does not consider a block, only block argument.
751-
# `foo {}` would be `true`, but `foo(&x)` would be false.
751+
# `foo {}` would be `false`, but `foo(&x)` would be `true`.
752752
def has_any_args?
753753
args.present? || !named_args.nil? || !block_arg.nil?
754754
end

0 commit comments

Comments
 (0)