Skip to content

Commit

Permalink
Correct word usage in extend.md.
Browse files Browse the repository at this point in the history
At this place we talk about the method parameters, not the arguments at the call site. I verified that both, ChatGPT and Bard, agree with this assessment.
  • Loading branch information
ath authored Jan 6, 2024
1 parent 351b567 commit 5a41451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/extend.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ the method (or methods) that it overrides in several ways:

* The return type must be the same type as (or a subtype of)
the overridden method's return type.
* Argument types must be the same type as (or a supertype of)
* Parameter types must be the same type as (or a supertype of)
the overridden method's argument types.
In the preceding example, the `contrast` setter of `SmartTelevision`
changes the argument type from `int` to a supertype, `num`.
Expand Down

0 comments on commit 5a41451

Please sign in to comment.