Skip to content

Commit

Permalink
Docstring refined for the getSectionValue() (#12478) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
luav authored and Araq committed Oct 22, 2019
1 parent ad3c100 commit 0490324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/parsecfg.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0490324

Please sign in to comment.