Skip to content

Commit

Permalink
Update record component accessors to appropriate variable name (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
DainTrain authored Jan 15, 2025
1 parent c58dc37 commit 9bb77da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/records/return_multiple_values.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ void main() {
Location treasureIsland = findTreasureIsland();
System.out.println(
"Treasure island is located at " +
location.latitude() +
treasureIsland.latitude() +
" " +
location.longitude() +
treasureIsland.longitude() +
"."
);
}
```

Regular classes are, of course, still useful. Its just for classes which only
hold some data together (and nothing else interesting) getting a constructor and accessors automatically is very convenient.
hold some data together (and nothing else interesting) getting a constructor and accessors automatically is very convenient.

0 comments on commit 9bb77da

Please sign in to comment.