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

Abierto
#264 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@MatheoPaiva ya está trabajando en esto.

Desde el 15/11/2026.

  • #266 de @MatheoPaiva — abierto

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
40/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
ruby

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Ruby
Estrellas
258
Forks
113
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby/TryRuby

Todos los issues de ruby/TryRuby

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.