Skip to content

Commit

Permalink
Fix a getter name in a comment from an extension types usage example (#…
Browse files Browse the repository at this point in the history
…5564)

This PR just fixes a typo in the NumberE usage example : a comment
refers to a 'i' getter when it should be the 'next' getter
  • Loading branch information
rxlabz authored Feb 17, 2024
1 parent 517febd commit 2c135f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/language/extension-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void testE() {
List<NumberE> numbers = [
NumberE(1),
num1.next, // OK: 'i' getter returns type 'NumberE'.
num1.next, // OK: 'next' getter returns type 'NumberE'.
1, // Error: Can't assign 'int' element to list type 'NumberE'.
];
}
Expand Down Expand Up @@ -458,4 +458,4 @@ is their lightweight implementation, which can greatly improve performance in so
[instance variables]: /language/classes#instance-variables
[`external`]: /language/functions#external
[abstract members]: /language/methods#abstract-methods
[`is` or `as` check]: /language/operators#type-test-operators
[`is` or `as` check]: /language/operators#type-test-operators

0 comments on commit 2c135f8

Please sign in to comment.