aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/text/encoding.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/text/encoding.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux
index 470265081..1ce536436 100644
--- a/stdlib/source/lux/data/text/encoding.lux
+++ b/stdlib/source/lux/data/text/encoding.lux
@@ -178,16 +178,16 @@
(~~ (static @.jvm))
(as-is (import: #long java/lang/String
- (new [(Array byte) java/lang/String])
- (getBytes [java/lang/String] (Array byte))))}))
+ (new [[byte] java/lang/String])
+ (getBytes [java/lang/String] [byte])))}))
(def: #export (to-utf8 value)
(-> Text Binary)
(`` (for {(~~ (static @.old))
- (java/lang/String::getBytes (..name ..utf-8) (:coerce java/lang/String value))
+ (java/lang/String::getBytes (..name ..utf-8) value)
(~~ (static @.jvm))
- (java/lang/String::getBytes (..name ..utf-8) (:coerce java/lang/String value))})))
+ (java/lang/String::getBytes (..name ..utf-8) value)})))
(def: #export (from-utf8 value)
(-> Binary (Error Text))