Skip to content

Commit

Permalink
fix: links broke after a heading change
Browse files Browse the repository at this point in the history
  • Loading branch information
zamulla committed Feb 10, 2025
1 parent 731899f commit 5d0f7e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/topics/booleans.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ The `||` and `&&` operators work lazily, which means:
* If the first operand is `true`, the `||` operator does not evaluate the second operand.
* If the first operand is `false`, the `&&` operator does not evaluate the second operand.

> On the JVM, nullable references to boolean objects are boxed in Java classes, just like with [numbers](numbers.md#numbers-representation-on-the-jvm).
> On the JVM, nullable references to boolean objects are boxed in Java classes, just like with [numbers](numbers.md#boxing-and-caching-numbers-on-the-java-virtual-machine).
>
{style="note"}
2 changes: 1 addition & 1 deletion docs/topics/characters.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun main() {

If a value of character variable is a digit, you can explicitly convert it to an `Int` number using the [`digitToInt()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/digit-to-int.html) function.

> On the JVM, characters are boxed in Java classes when a nullable reference is needed, just like with [numbers](numbers.md#numbers-representation-on-the-jvm).
> On the JVM, characters are boxed in Java classes when a nullable reference is needed, just like with [numbers](numbers.md#boxing-and-caching-numbers-on-the-java-virtual-machine).
> Identity is not preserved by the boxing operation.
>
{style="note"}
2 changes: 1 addition & 1 deletion docs/topics/inline-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ other classes and are always `final`.

In generated code, the Kotlin compiler keeps a *wrapper* for each inline class. Inline class instances can be represented
at runtime either as wrappers or as the underlying type. This is similar to how `Int` can be
[represented](numbers.md#numbers-representation-on-the-jvm) either as a primitive `int` or as the wrapper `Integer`.
[represented](numbers.md#boxing-and-caching-numbers-on-the-java-virtual-machine) either as a primitive `int` or as the wrapper `Integer`.

The Kotlin compiler will prefer using underlying types instead of wrappers to produce the most performant and optimized code.
However, sometimes it is necessary to keep wrappers around. As a rule of thumb, inline classes are boxed whenever they
Expand Down

0 comments on commit 5d0f7e2

Please sign in to comment.