From 3283e2b73660df5c704edeb442cfbd083286d1f3 Mon Sep 17 00:00:00 2001 From: LapinoLapidus Date: Sat, 14 Sep 2019 18:28:16 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79ee862..0302dec 100644 --- a/README.md +++ b/README.md @@ -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" @@ -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"