docs: clarify default parameter behavior in section Quickening it Up and fix Portuguese translation typo
Évaluation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Accessibilité débutants
- 40/100
- Type d'issue
- Documentation
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- ruby
- Domaine
- documentation
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
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.
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.
- Langage dominant
- Ruby
- Étoiles
- 258
- Forks
- 113
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ruby/TryRuby
-
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
-
Occupied ports and notificationsOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
-
Test system can be expandedOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Toutes les issues de ruby/TryRuby
Issues similaires
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
betagouv/conseillers-entreprises#4808 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
yosiat/panko_serializer#250 ·
-
[Server Submission]: Aspera CLIOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
cline/mcp-marketplace#3886 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100