Skip to content

Commit

Permalink
Doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
natario1 committed Jun 11, 2024
1 parent fa42d01 commit b2619af
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions docs/features/callables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ Upward functions (called from K/N, implemented on the JVM) are also available th
check(topLevelFunction() == 42)
```

If you wish to have a different JVM name, use the name parameter:

```kotlin
// Kotlin/Native
@Knee(name = "prettyName") fun uglyName(): Unit = ...

// Kotlin/JVM
prettyName()
```

## Properties

For a property to be available on the JVM side, it must be annotated with the `@Knee` annotation.
Expand All @@ -50,13 +40,3 @@ Both `var` and `val` properties are supported.
mutableProp = immutableProp
check(mutableProp == immutableProp)
```

If you wish to have a different JVM name, use the name parameter:

```kotlin
// Kotlin/Native
@Knee(name = "prettyName") val uglyName: Int get() = ...

// Kotlin/JVM
val prettyValue = prettyName
```

0 comments on commit b2619af

Please sign in to comment.