1
Fork 0

Rename inihibit_union_abi_opt() to inihibits_union_abi_opt()

The present tense makes it read more naturally at use site i.e.
"this repr _inhibits_ optimizations"
This commit is contained in:
Gurinder Singh 2024-04-28 13:09:36 +05:30
parent 6acb9e75eb
commit 4aafec1bc1
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ impl ReprOptions {
}
/// Returns `true` if this `#[repr()]` should inhibit union ABI optimisations.
pub fn inhibit_union_abi_opt(&self) -> bool {
pub fn inhibits_union_abi_opt(&self) -> bool {
self.c()
}
}