File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Ergonomic const functions are provided as well:
3030const A : usize = fn_ptr :: arity :: <F >();
3131const SAFE : bool = fn_ptr :: is_safe :: <F >();
3232const EXT : bool = fn_ptr :: is_extern :: <F >();
33- const abi : AbiValue = fn_ptr :: abi :: <F >();
33+ const ABI : AbiValue = fn_ptr :: abi :: <F >();
3434```
3535
3636## Rewriting function-pointer types
Original file line number Diff line number Diff line change 3333//! const A: usize = fn_ptr::arity::<F>();
3434//! const SAFE: bool = fn_ptr::is_safe::<F>();
3535//! const EXT: bool = fn_ptr::is_extern::<F>();
36- //! const abi : AbiValue = fn_ptr::abi::<F>();
36+ //! const ABI : AbiValue = fn_ptr::abi::<F>();
3737//! ```
3838//!
3939//! ## Rewriting function-pointer types
@@ -148,7 +148,7 @@ pub const fn is_extern<F: FnPtr>() -> bool {
148148 F :: IS_EXTERN
149149}
150150
151- /// Returns the abi of the function pointer.
151+ /// Returns a runtime representation of the abi of the function pointer.
152152#[ must_use]
153153pub const fn abi < F : FnPtr > ( ) -> AbiValue {
154154 F :: ABI
You can’t perform that action at this time.
0 commit comments