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

Offen
#264 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@MatheoPaiva arbeitet bereits daran.

Seit 15.11.2026.

  • #266 von @MatheoPaiva — offen

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
40/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
ruby
Bereich
documentation

Rechercherichtung

Open the "Quickening it Up" section of the tutorial and its Portuguese counterpart, and locate the paragraph describing the initialize default argument (content="" / conteudo=""). Compare the two texts: the English one needs the wording softened to say the default only applies when the argument is omitted, and the Portuguese one additionally carries a stray __. Make the prose match across translations with consistent inline code around parameter names, then view the rendered pages to confirm. Note an open pull request (#266) already targets this, so check it before starting to avoid duplicate work.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Section: Quickening it Up

Description

The Ruby tutorial's explanation of the initialize method contains two issues:

1. Misleading explanation (identified in both English and Portuguese)

Both versions suggest that the default argument (content="" / conteudo="") guarantees the parameter is a string.

image

However, the default value only applies when the argument is omitted. Passing nil or another incompatible value explicitly can still cause an error.

Suggested wording (English):

"The default value content="" ensures that content is an empty string when no argument is provided."

Suggested wording (Portuguese):

"O valor padrão conteudo="" garante que conteudo seja uma string vazia quando nenhum argumento for informado."

2. Formatting typo (Portuguese only)

The Portuguese translation contains an unexpected __ in the paragraph explaining the default parameter. This does not appear in others version.

image
Expected behavior
  • Both translations accurately describe Ruby's default argument behavior.
  • The Portuguese version no longer contains the unintended __.
  • Parameter names and values use consistent inline code formatting.
Vorherrschende Sprache
Ruby
Sterne
258
Forks
113
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ruby/TryRuby

Alle Issues in ruby/TryRuby

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.