From fb03e618e131888154907604afc009d09e3fe5c5 Mon Sep 17 00:00:00 2001 From: Alexander Ekdahl Date: Sat, 23 Nov 2019 12:33:11 -0500 Subject: [PATCH] Update bits example --- src/bits/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bits/mod.rs b/src/bits/mod.rs index dba0bf9..a6b12f1 100644 --- a/src/bits/mod.rs +++ b/src/bits/mod.rs @@ -23,10 +23,10 @@ use crate::traits::{Slice, ErrorConvert}; /// # #[macro_use] extern crate nom; /// # use nom::IResult; /// use nom::bits::bits; -/// use nom::bits::complete::take_bits; +/// use nom::bits::complete::take; /// /// fn take_4_bits(input: &[u8]) -> IResult<&[u8], u64> { -/// bits( take_bits(4usize) )(input) +/// bits(take::<_, _, _, (_, _)>(4usize))(input) /// } /// /// let input = vec![0xAB, 0xCD, 0xEF, 0x12]; @@ -117,4 +117,3 @@ where { bytes(parser)(input) } -