Skip to content

Commit a39ca12

Browse files
committed
Update docs
1 parent c8e471b commit a39ca12

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ergonomic const functions are provided as well:
3030
const A: usize = fn_ptr::arity::<F>();
3131
const SAFE: bool = fn_ptr::is_safe::<F>();
3232
const 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

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
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]
153153
pub const fn abi<F: FnPtr>() -> AbiValue {
154154
F::ABI

0 commit comments

Comments
 (0)