From ab3d089a7538cc5fa5350a32d47015e20ae5724f Mon Sep 17 00:00:00 2001 From: StevenLeiZhang Date: Fri, 2 Feb 2024 17:48:59 +0800 Subject: [PATCH] Fix: typo in document of Configuration Signed-off-by: StevenLeiZhang --- docs/user_docs/guides/configuration.md | 2 +- examples/configuration/db.k | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user_docs/guides/configuration.md b/docs/user_docs/guides/configuration.md index e6060815..10db9c34 100644 --- a/docs/user_docs/guides/configuration.md +++ b/docs/user_docs/guides/configuration.md @@ -88,7 +88,7 @@ nginx: Besides, we can dynamically receive external parameters through the KCL builtin function `option`. For example, for the following KCL file (db.k), we can use the KCL command line `-D` flag to receive an external dynamic parameter. ```python -env: str = option("env") or "dev" # The attribute `env` has a default value "den" +env: str = option("env") or "dev" # The attribute `env` has a default value "dev" database: str = option("database") hosts = { dev = "postgres.dev" diff --git a/examples/configuration/db.k b/examples/configuration/db.k index b8854252..df20dd88 100644 --- a/examples/configuration/db.k +++ b/examples/configuration/db.k @@ -1,4 +1,4 @@ -env: str = option("env") or "dev" # The attribute `env` has a default value "den" +env: str = option("env") or "dev" # The attribute `env` has a default value "dev" database: str = option("database") hosts = { dev = "postgres.dev"