add note to raw_slot

This commit is contained in:
Philip Monk 2023-02-02 10:54:31 -07:00
parent b88190f119
commit 23e33cfd11

View File

@ -505,6 +505,7 @@ fn push_formula(stack: &mut NockStack, formula: Noun) {
} }
} }
/** Note: axis must fit in a direct atom */
pub fn raw_slot(noun: Noun, axis: u64) -> Noun { pub fn raw_slot(noun: Noun, axis: u64) -> Noun {
slot(noun, DirectAtom::new(axis).unwrap().as_bitslice()) slot(noun, DirectAtom::new(axis).unwrap().as_bitslice())
} }