Skip to content

Commit

Permalink
chore(doc): fix docstring for FheIntX types
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Jan 5, 2024
1 parent fef6d18 commit f052c1f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tfhe/src/high_level_api/integers/types/static_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ macro_rules! static_int_type {
$(#[$outer:meta])*
$name:ident {
num_bits: $num_bits:literal,
}
},
$signedness:literal
) => {
paste! {
#[doc = concat!("An unsigned integer type with", stringify!($num_bits), "bits")]
#[doc = concat!("An integer type with ", stringify!($num_bits), " bits of precision ")]
#[doc = concat!("representing ", $signedness, " values")]
$(#[$outer])*
#[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))]
pub type $name = GenericInteger<[<$name Id>]>;
Expand Down Expand Up @@ -135,7 +137,8 @@ macro_rules! static_int_type {
$(#[$outer])*
[<FheUint $num_bits>] {
num_bits: $num_bits,
}
},
"unsigned"
);
}
};
Expand Down Expand Up @@ -164,7 +167,8 @@ macro_rules! static_int_type {
$(#[$outer])*
[<FheInt $num_bits>] {
num_bits: $num_bits,
}
},
"signed"
);
}
};
Expand Down

0 comments on commit f052c1f

Please sign in to comment.