summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDaniil Yarancev <TiberiumN@users.noreply.github.com>2017-04-26 21:29:53 +0300
committerAndreas Rumpf <rumpf_a@web.de>2017-04-26 20:29:53 +0200
commit40f79e6cddf63b05843284263dc36013da2ee1b7 (patch)
tree12e6eae5c706e5dc08abc2de730efdab38c301ad /lib
parent3d34a9f6d34809a481024a687ed5f4d712a9b961 (diff)
downloadNim-40f79e6cddf63b05843284263dc36013da2ee1b7.tar.gz
Small grammar fixes in json.nim (#5758)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/json.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index a6659638d..564f952d3 100644
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -1213,22 +1213,22 @@ when not defined(js):
   proc parseJson*(s: Stream, filename: string): JsonNode =
     ## Parses from a stream `s` into a `JsonNode`. `filename` is only needed
     ## for nice error messages.
-    ## If `s` contains extra data, it will raising `JsonParsingError`.
+    ## If `s` contains extra data, it will raise `JsonParsingError`.
     var p: JsonParser
     p.open(s, filename)
     defer: p.close()
     discard getTok(p) # read first token
     result = p.parseJson()
-    eat(p, tkEof) # check there are no exstra data
+    eat(p, tkEof) # check if there is no extra data
 
   proc parseJson*(buffer: string): JsonNode =
     ## Parses JSON from `buffer`.
-    ## If `buffer` contains extra data, it will raising `JsonParsingError`.
+    ## If `buffer` contains extra data, it will raise `JsonParsingError`.
     result = parseJson(newStringStream(buffer), "input")
 
   proc parseFile*(filename: string): JsonNode =
     ## Parses `file` into a `JsonNode`.
-    ## If `file` contains extra data, it will raising `JsonParsingError`.
+    ## If `file` contains extra data, it will raise `JsonParsingError`.
     var stream = newFileStream(filename, fmRead)
     if stream == nil:
       raise newException(IOError, "cannot read from file: " & filename)