diff options
Diffstat (limited to 'stdlib/source/lux/data/format/json.lux')
-rw-r--r-- | stdlib/source/lux/data/format/json.lux | 10 |
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:) |