Docstring refined for the getSectionValue() (#12478) [backport]
This commit is contained in:
parent
ad3c10022a
commit
049032432c
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ proc writeConfig*(dict: Config, filename: string) =
|
||||||
dict.writeConfig(fileStream)
|
dict.writeConfig(fileStream)
|
||||||
|
|
||||||
proc getSectionValue*(dict: Config, section, key: string): string =
|
proc getSectionValue*(dict: Config, section, key: string): string =
|
||||||
## Gets the Key value of the specified Section.
|
## Gets the Key value of the specified Section, returns an empty string if the key does not exist.
|
||||||
if dict.hasKey(section):
|
if dict.hasKey(section):
|
||||||
if dict[section].hasKey(key):
|
if dict[section].hasKey(key):
|
||||||
result = dict[section][key]
|
result = dict[section][key]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue