diff options
author | Eduardo Julian | 2018-08-29 22:36:47 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-08-29 22:36:47 -0400 |
commit | ba93f7da278a3fdc71729d7a0325c99cec74ca3c (patch) | |
tree | 84f298edb360fefb6c6b518394a4565546ef0739 /stdlib/source/lux/data/text/encoding.lux | |
parent | c9ff55f6c989aff28b2d687fd8aa0ef520701e2c (diff) |
Adapted new-luxc to latest stdlib changes.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/text/encoding.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux index 029505b21..de4bdf310 100644 --- a/stdlib/source/lux/data/text/encoding.lux +++ b/stdlib/source/lux/data/text/encoding.lux @@ -18,9 +18,9 @@ (def: #export (to-utf8 value) (-> Text Binary) (`` (for {(~~ (static _.jvm)) - (String::getBytes [..utf8] value)}))) + (String::getBytes ..utf8 (:coerce String value))}))) (def: #export (from-utf8 value) (-> Binary (Error Text)) (`` (for {(~~ (static _.jvm)) - (#error.Success (String::new [value ..utf8]))}))) + (#error.Success (String::new value ..utf8))}))) |