minor typo (#16225)

This commit is contained in:
flywind 2020-12-02 10:23:38 +08:00 • committed by GitHub
commit 9fa5826d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,7 @@ proc newConfig*(): Config =
result = newOrderedTable[string, <//>OrderedTableRef[string, string]]() result = newOrderedTable[string, <//>OrderedTableRef[string, string]]()
proc loadConfig*(stream: Stream, filename: string = "[stream]"): <//>Config = proc loadConfig*(stream: Stream, filename: string = "[stream]"): <//>Config =
## Loadw the specified configuration from stream into a new Config instance. ## Loads the specified configuration from stream into a new Config instance.
## `filename` parameter is only used for nicer error messages. ## `filename` parameter is only used for nicer error messages.
var dict = newOrderedTable[string, <//>OrderedTableRef[string, string]]() var dict = newOrderedTable[string, <//>OrderedTableRef[string, string]]()
var curSection = "" ## Current section, var curSection = "" ## Current section,