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.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux
index d5246e382..661e0bbf9 100644
--- a/stdlib/source/lux/data/text/encoding.lux
+++ b/stdlib/source/lux/data/text/encoding.lux
@@ -3,7 +3,7 @@
[data
["." error (#+ Error)]]
[world
- [blob (#+ Blob)]]
+ [binary (#+ Binary)]]
[language
["_" host]]
[host (#+ import:)]])
@@ -16,11 +16,11 @@
(getBytes [String] (Array byte))))}))
(def: #export (to-utf8 value)
- (-> Text Blob)
+ (-> Text Binary)
(`` (for {(~~ (static _.jvm))
(String::getBytes [..utf8] value)})))
(def: #export (from-utf8 value)
- (-> Blob (Error Text))
+ (-> Binary (Error Text))
(`` (for {(~~ (static _.jvm))
(#error.Success (String::new [value ..utf8]))})))