Skip to content

Commit 9bb77da

Browse files
authored
Update record component accessors to appropriate variable name (#65)
1 parent c58dc37 commit 9bb77da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/records/return_multiple_values.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ void main() {
1616
Location treasureIsland = findTreasureIsland();
1717
System.out.println(
1818
"Treasure island is located at " +
19-
location.latitude() +
19+
treasureIsland.latitude() +
2020
" " +
21-
location.longitude() +
21+
treasureIsland.longitude() +
2222
"."
2323
);
2424
}
2525
```
2626

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

0 commit comments

Comments
 (0)