Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Konfig has a few ways to reduce boilerplate code when defining configuration key

1) You can use Kotlin's delgated property protocol to name keys after the constants that hold them:

```
```kotlin
val host by stringType // defines a key named "host"
val port by intType // defines a key named "port"

Expand All @@ -100,7 +100,7 @@ Konfig has a few ways to reduce boilerplate code when defining configuration key

2) You can declare objects that extend PropertyGroup to define hierarchies of property keys that follow the Konfig naming conventions described above:

```
```kotlin
object server : PropertyGroup() {
val base_uri by uriType // defines a key named "server.base-uri"
val api_key by stringType // defines a key named "server.api-key"
Expand Down