Skip to content

Commit 852a847

Browse files
chore: update reference to copy() function in data-classes.md (#5437)
1 parent f43b098 commit 852a847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/data-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler automatically derives the following members from all properties dec
1313
* `equals()`/`hashCode()` pair.
1414
* `toString()` of the form `"User(name=John, age=42)"`.
1515
* [`componentN()` functions](destructuring-declarations.md) corresponding to the properties in their order of declaration.
16-
* `copy()` function (see below).
16+
* [`copy()` function](#copying).
1717

1818
To ensure consistency and meaningful behavior of the generated code, data classes have to fulfill the following requirements:
1919

@@ -138,4 +138,4 @@ println("$name, $age years of age")
138138
## Standard data classes
139139

140140
The standard library provides the `Pair` and `Triple` classes. In most cases, though, named data classes are a better design choice
141-
because they make the code easier to read by providing meaningful names for the properties.
141+
because they make the code easier to read by providing meaningful names for the properties.

0 commit comments

Comments
 (0)