Skip to content

Commit 82db250

Browse files
chore: fix anchors
1 parent 85c4e7f commit 82db250

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/topics/collection-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ transformations, and so on.
66

77
## Extension and member functions
88

9-
Collection operations are declared in the standard library in two ways: [member functions](classes.md#class-members) of
9+
Collection operations are declared in the standard library in two ways: [member functions](classes.md) of
1010
collection interfaces and [extension functions](extensions.md#extension-functions).
1111

1212
Member functions define operations that are essential for a collection type. For example, [`Collection`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)

docs/topics/data-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Additionally, the generation of data class members follows these rules with rega
3434
Data classes may extend other classes (see [Sealed classes](sealed-classes.md) for examples).
3535

3636
> On the JVM, if the generated class needs to have a parameterless constructor, default values for the properties have
37-
> to be specified (see [Constructors](classes.md#constructors)):
37+
> to be specified (see [Constructors](classes.md#constructors-and-initializer-blocks)):
3838
>
3939
> ```kotlin
4040
> data class User(val name: String = "", val age: Int = 0)

docs/topics/exceptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class`](inheritance.md), you can create [custom exceptions](#create-custom-excep
2424

2525
You can manually throw exceptions with the `throw` keyword.
2626
Throwing an exception indicates that an unexpected runtime error has occurred in the code.
27-
Exceptions are [objects](classes.md#creating-instances-of-classes), and throwing one creates an instance of an exception class.
27+
Exceptions are [objects](classes.md#creating-objects-of-classes), and throwing one creates an instance of an exception class.
2828

2929
You can throw an exception without any parameters:
3030

docs/topics/keyword-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following tokens are always interpreted as keywords and cannot be used as id
4343
- [calls the superclass constructor from a secondary constructor](classes.md#inheritance).
4444
* `this`
4545
- refers to [the current receiver](this-expressions.md).
46-
- [calls another constructor of the same class from a secondary constructor](classes.md#constructors).
46+
- [calls another constructor of the same class from a secondary constructor](classes.md#constructors-and-initializer-blocks).
4747
* `throw` [throws an exception](exceptions.md).
4848
* `true` specifies the 'true' value of the [Boolean type](booleans.md).
4949
* `try` [begins an exception-handling block](exceptions.md).
@@ -63,7 +63,7 @@ as identifiers in other contexts:
6363
- [delegates the implementation of an interface to another object](delegation.md).
6464
- [delegates the implementation of the accessors for a property to another object](delegated-properties.md).
6565
* `catch` begins a block that [handles a specific exception type](exceptions.md).
66-
* `constructor` declares a [primary or secondary constructor](classes.md#constructors).
66+
* `constructor` declares a [primary or secondary constructor](classes.md#constructors-and-initializer-blocks).
6767
* `delegate` is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).
6868
* `dynamic` references a [dynamic type](dynamic-type.md) in Kotlin/JS code.
6969
* `field` is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).
@@ -73,7 +73,7 @@ as identifiers in other contexts:
7373
- declares the [getter of a property](properties.md#getters-and-setters).
7474
- is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).
7575
* `import` [imports a declaration from another package into the current file](packages.md).
76-
* `init` begins an [initializer block](classes.md#constructors).
76+
* `init` begins an [initializer block](classes.md#constructors-and-initializer-blocks).
7777
* `param` is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).
7878
* `property` is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).
7979
* `receiver` is used as an [annotation use-site target](annotations.md#annotation-use-site-targets).

docs/topics/tour/kotlin-tour-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ In the example:
8080
* `id` and `email` are used with the default constructor to create `contact`.
8181

8282
Kotlin classes can have many constructors, including ones that you define yourself. To learn more about how to declare
83-
multiple constructors, see [Constructors](classes.md#constructors).
83+
multiple constructors, see [Constructors](classes.md#constructors-and-initializer-blocks).
8484

8585
## Access properties
8686

0 commit comments

Comments
 (0)