Skip to content

docs: clarify default parameters in the Quickening it Up lesson - #266

Open
MatheoPaiva wants to merge 1 commit into
ruby:masterfrom
MatheoPaiva:docs/default-argument-explanation
Open

MatheoPaiva wants to merge 1 commit into
ruby:masterfrom
MatheoPaiva:docs/default-argument-explanation

Conversation

@MatheoPaiva

Copy link
Copy Markdown

Fixes #264.

The lesson said the default content="" "makes sure that we know content is a string". The code in this lesson is def initialize(mood, content=""), and the default's effect is that content is an empty string when no argument is given. This rewrites the sentence to say that.

Changed in both translations/en/try_ruby_500.md and translations/pt-br/try_ruby_500.md. Text only; no code samples changed.

Checked by reading the lesson source. I did not run the lesson.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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.

docs: clarify default parameter behavior in section Quickening it Up and fix Portuguese translation typo

1 participant