From 9a58019a6bdbb848691154ad129f75e3955a9527 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 18 Jul 2017 22:34:42 -0700 Subject: doc: no ffi type operator "bits". * txr.1: Under description of bool, fix references to nonexistent (bits n type). --- txr.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txr.1 b/txr.1 index 41659f2e..a37c5397 100644 --- a/txr.1 +++ b/txr.1 @@ -55628,12 +55628,12 @@ The .code bool types are not integers, and cannot be used as the basis of bitfields: syntax like -.code "(bits 3 (bool uint))" +.code "(bit 3 (bool uint))" is not permitted. However, Boolean bitfields are possible when this syntax is turned inside out: the .code bool type can be derived from a bitfield type, as exemplified by -.codn "(bool (bits 3 uint))" . +.codn "(bool (bit 3 uint))" . This simply applies the above described Boolean conversion semantics to a three-bit field. A zero/nonzero value of the field converts to .cod3 nil / t -- cgit v1.2.3