Skip to content

Commit be0da3a

Browse files
committed
feat(hax-lib): int!: improve doc
1 parent f9781c4 commit be0da3a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hax-lib/macros/src/implementation.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,14 @@ pub fn pv_handwritten(_attr: pm::TokenStream, item: pm::TokenStream) -> pm::Toke
803803
quote! {#attr #item}.into()
804804
}
805805

806-
/// Create a mathematical integer. This macro expects a integer
807-
/// literal that consists in an optional minus sign followed by one or
808-
/// more digits.
806+
/// Create a mathematical integer. This macro expects a Rust integer
807+
/// literal without suffix.
808+
///
809+
/// ## Examples:
810+
/// - `int!(0x101010)`
811+
/// - `int!(42)`
812+
/// - `int!(0o52)`
813+
/// - `int!(0h2A)`
809814
#[proc_macro_error]
810815
#[proc_macro]
811816
pub fn int(payload: pm::TokenStream) -> pm::TokenStream {

0 commit comments

Comments
 (0)