Update explanation of parameters and arguments#44660
Merged
Merged
Conversation
Clarify the distinction between parameters and arguments in function definitions.
Contributor
|
Preview URLs (2 pages)
(comment last updated: 2026-07-09 07:58:56) |
chrisdavidmills
approved these changes
Jul 8, 2026
chrisdavidmills
left a comment
Contributor
There was a problem hiding this comment.
Thanks, @Lk-ux, for your work on this. I agree that this needs to be called out more accurately. I decided to make a few changes to the PR for further improvements:
- I went through and made some general grammar improvements.
- I edited your note a bit and also promoted it to being part of the main content flow. I think it is too important to be hidden in a note.
- I changed a bunch of instances of "parameter" to "argument" as many of them were being wrongly used, as per your change.
I've approved it, but I won't merge it until you've reviewed my changes and let me know you're happy with them.
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Lk-ux
commented
Jul 8, 2026
Contributor
|
Thanks, @Lk-ux. I've responded to all your comments in a new commit. |
Contributor
Author
|
Thanks, @chrisdavidmills. I've reviewed the changes, and I'm happy with them. You can merge this now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clarify the distinction between parameters and arguments in function definitions.
Description
Corrected the note by clarifying that parameters and arguments are not same.
Motivation
Currently, the note incorrectly says that parameters are called arguments, properties, and attributes. My correction resolves this misunderstanding.
Additional details
Related issues and pull requests