diff options
author | Eduardo Julian | 2019-02-04 00:19:57 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-02-04 00:19:57 -0400 |
commit | 71a6928d3db3b05144c33516db307d5975a94dee (patch) | |
tree | fe087b91903c0dda41bfa84423d4958e1778f1b6 /stdlib/source/lux/world/binary.lux | |
parent | cf9e3fa6fef24cc0828ab882661fa96dc6f2570d (diff) |
Changed the naming style for structures.
Diffstat (limited to 'stdlib/source/lux/world/binary.lux')
-rw-r--r-- | stdlib/source/lux/world/binary.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/lux/world/binary.lux b/stdlib/source/lux/world/binary.lux index 8e5b3901d..7ccc9e1cb 100644 --- a/stdlib/source/lux/world/binary.lux +++ b/stdlib/source/lux/world/binary.lux @@ -159,12 +159,12 @@ (-> Nat Binary (Error Binary)) (slice from (dec (..!size binary)) binary)) -(structure: #export _ (Equivalence Binary) +(structure: #export equivalence (Equivalence Binary) (def: (= reference sample) (Arrays::equals reference sample))) (def: #export (copy bytes source-offset source target-offset target) (-> Nat Nat Binary Nat Binary (Error Binary)) - (do error.Monad<Error> + (do error.monad [_ (System::arraycopy source (.int source-offset) target (.int target-offset) (.int bytes))] (wrap target))) |