mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 16:01:29 +00:00
Docstring refined for the getSectionValue() (#12478) [backport]
This commit is contained in:
@@ -561,7 +561,7 @@ proc writeConfig*(dict: Config, filename: string) =
|
||||
dict.writeConfig(fileStream)
|
||||
|
||||
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[section].hasKey(key):
|
||||
result = dict[section][key]
|
||||
|
||||
Reference in New Issue
Block a user