Skip to content

Fix invalid Ruby code example in ClassNode comment#3761

Merged
eregon merged 1 commit into
ruby:mainfrom
ryumasai:dev
Nov 28, 2025
Merged

Fix invalid Ruby code example in ClassNode comment#3761
eregon merged 1 commit into
ruby:mainfrom
ryumasai:dev

Conversation

@ryumasai

Copy link
Copy Markdown
Contributor

Added a semicolon to make it valid Ruby code.

- class Foo end
+ class Foo; end

@eregon
eregon merged commit d9b2917 into ruby:main Nov 28, 2025
64 checks passed
@eregon

eregon commented Nov 28, 2025

Copy link
Copy Markdown
Member

Thanks!

@kddnewton

Copy link
Copy Markdown
Collaborator

That syntax was valid! The point was to avoid semicolons if we could in the file, so reverting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants