aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/format/binary.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/data/format/binary.lux')
-rw-r--r--stdlib/source/lux/data/format/binary.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/lux/data/format/binary.lux b/stdlib/source/lux/data/format/binary.lux
index 4503f21dd..a5dcde900 100644
--- a/stdlib/source/lux/data/format/binary.lux
+++ b/stdlib/source/lux/data/format/binary.lux
@@ -148,14 +148,14 @@
(Binary Any)
(ignore []))
-(def: #export bool
- (Binary Bool)
+(def: #export bit
+ (Binary Bit)
{#read (function (_ [offset blob])
(case (blob.read/8 offset blob)
(#error.Success data)
(case (: Nat data)
- (^template [<nat> <bool>]
- <nat> (#error.Success [(inc offset) blob] <bool>))
+ (^template [<nat> <bit>]
+ <nat> (#error.Success [(inc offset) blob] <bit>))
([+0 false]
[+1 true])
@@ -264,8 +264,8 @@
(function (_ code)
(let [sequence (..list code)
code' ($_ ..alt
- ## #Bool
- ..bool
+ ## #Bit
+ ..bit
## #Nat
..nat
## #Int