From 962502e64dc170088af133470eb878d7dd0e8d4c Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 12 Apr 2017 21:07:23 -0400 Subject: - Simplified some of the documentation and error messages. --- stdlib/source/lux/data/format/json.lux | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stdlib/source/lux/data/format/json.lux') 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 [ ] [(def: #export ( 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//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 :x:) -- cgit v1.2.3