aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/format/json.lux
diff options
context:
space:
mode:
authorEduardo Julian2017-04-12 21:07:23 -0400
committerEduardo Julian2017-04-12 21:07:23 -0400
commit962502e64dc170088af133470eb878d7dd0e8d4c (patch)
tree474ba3e6a95a7db5959972ff449bc157511e4393 /stdlib/source/lux/data/format/json.lux
parent534c76a868f35c2eecc13e60df343e12faf84f47 (diff)
- Simplified some of the documentation and error messages.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/format/json.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/data/format/json.lux b/stdlib/source/lux/data/format/json.lux
index f6bbe08b3..41e5bfe5c 100644
--- a/stdlib/source/lux/data/format/json.lux
+++ b/stdlib/source/lux/data/format/json.lux
@@ -156,7 +156,7 @@
(#;Right (dict;keys obj))
_
- (#;Left (format "Can't get the fields of a non-object."))))
+ (#;Left (format "Cannot get the fields of a non-object."))))
(def: #export (get key json)
{#;doc "A JSON object field getter."}
@@ -171,7 +171,7 @@
(#;Left (format "Missing field " (show-string key) " on object.")))
_
- (#;Left (format "Can't get field " (show-string key) " of a non-object."))))
+ (#;Left (format "Cannot get field " (show-string key) " of a non-object."))))
(def: #export (set key value json)
{#;doc "A JSON object field setter."}
@@ -181,7 +181,7 @@
(#;Right (#Object (dict;put key value obj)))
_
- (#;Left (format "Can't set field " (show-string key) " of a non-object."))))
+ (#;Left (format "Cannot set field " (show-string key) " of a non-object."))))
(do-template [<name> <tag> <type> <desc>]
[(def: #export (<name> key json)
@@ -918,7 +918,7 @@
(wrap (` (: (~ (->Codec//encode (type;to-ast :x:)))
((~ .func.) (~@ .args.))))))
(poly;bound *env* :x:)
- (macro;fail (format "Can't create JSON encoder for: " (%type :x:)))
+ (macro;fail (format "Cannot create JSON encoder for: " (%type :x:)))
))))
(poly: #hidden (Codec<JSON,?>//decode *env* :x:)
@@ -1086,7 +1086,7 @@
(do @
[g!bound (poly;bound *env* :x:)]
(wrap g!bound))
- (macro;fail (format "Can't create JSON decoder for: " (%type :x:)))
+ (macro;fail (format "Cannot create JSON decoder for: " (%type :x:)))
))))
(syntax: #export (Codec<JSON,?> :x:)