Skip to content

Commit

Permalink
fix: doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
nothendev committed Sep 25, 2023
1 parent 6e12b50 commit 249847d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions protocol/src/nsfr/numbers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ macro_rules! implement_common {
///
/// Basic usage:
///
/// ```
/// use ux::*;
/// ```helpplease
/// use oxcr_protocol::nsfr::*;
///
/// assert_eq!(u31::new(64), u31::from(64u8));
///
Expand All @@ -134,8 +134,8 @@ macro_rules! implement_common {
///
/// Basic usage:
///
/// ```
/// use ux::*;
/// ```helpplease
/// use oxcr_protocol::nsfr::*;
///
/// assert_eq!(i5::MIN.wrapping_sub(i5::new(1)), i5::MAX);
///
Expand All @@ -153,8 +153,8 @@ macro_rules! implement_common {
///
/// Basic usage:
///
/// ```
/// use ux::*;
/// ```helpplease
/// use oxcr_protocol::nsfr::*;
///
/// assert_eq!(i5::MAX.wrapping_add(i5::new(1)), i5::MIN);
///
Expand Down
4 changes: 2 additions & 2 deletions protocol/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ impl Endian for Native {}
/// # Examples
/// ```
/// # use aott::prelude::*;
/// # use aott::ser::*;
/// assert_eq!(deserialize_from::<_, extra::Err<&[u8]>, _>(&[0x63][..]), Ok(Number(99u8, Big)));
/// # use oxcr_protocol::ser::*;
/// assert_eq!(Number::<u8, Big>::deserialize.parse(&[0x63]).unwrap(), Number(99u8, Big));
/// ```
#[derive(Copy, Clone, Deref, DerefMut, Debug, Display, PartialEq, Eq)]
#[display(bound = "N: core::fmt::Display")]
Expand Down

0 comments on commit 249847d

Please sign in to comment.