Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix unicode characters in JSON docstrings

  • Loading branch information...
commit 01036ea181b979b5ff190f2eb44c2bf3ca9e1c3b 1 parent 82c7d49
@stuartsierra stuartsierra authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/json/src/main/clojure/clojure/contrib/json.clj
View
6 modules/json/src/main/clojure/clojure/contrib/json.clj
@@ -307,7 +307,7 @@
Valid options are:
:escape-unicode false
- to turn of \uXXXX escapes of Unicode characters."
+ to turn of \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options
sw (StringWriter.)
@@ -320,7 +320,7 @@
Valid options are:
:escape-unicode false
- to turn off \uXXXX escapes of Unicode characters."
+ to turn off \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options]
(write-json x *out* escape-unicode)))
@@ -354,7 +354,7 @@
Valid options are:
:escape-unicode false
- to turn off \uXXXX escapes of Unicode characters."
+ to turn off \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options]
(write x :dispatch #(pprint-json-dispatch % escape-unicode))))
Please sign in to comment.
Something went wrong with that request. Please try again.