Skip to content

docs: use parameter instead of argument in tic-tac-toe tutorial#8482

Draft
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-8375
Draft

docs: use parameter instead of argument in tic-tac-toe tutorial#8482
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-8375

Conversation

@LuxologyGG

Copy link
Copy Markdown

Fixes #8375

Summary

In the tic-tac-toe tutorial, the text incorrectly called i in function handleClick(i) an "argument". In a function definition, i is a parameter; values passed when calling the function (like handleClick(0)) are arguments.

Changes

  • Updated one sentence in src/content/learn/tutorial-tic-tac-toe.md to say "Add a parameter i" instead of "Add an argument i".

Note

This was picked up during automated issue triage. All open good first issue items currently have existing PRs referencing them.

When introducing `function handleClick(i)`, `i` is a parameter in the
function definition, not an argument. Fixes reactjs#8375.
@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

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.

[Typo]: parameter mistaken as an argument

2 participants