diff --git a/src/lib.rs b/src/lib.rs index cbb9bc1..fdc8b45 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,8 +136,7 @@ impl Library { /// /// # Safety /// - /// Users of this API must specify the correct type of the function or variable loaded. Using a - /// `Symbol` with a wrong type causes undefined behaviour. + /// Users of this API must specify the correct type of the function or variable loaded. /// /// # Platform-specific behaviour /// diff --git a/src/os/unix/mod.rs b/src/os/unix/mod.rs index a0b197d..508f2b1 100644 --- a/src/os/unix/mod.rs +++ b/src/os/unix/mod.rs @@ -273,8 +273,7 @@ impl Library { /// /// # Safety /// - /// Users of this API must specify the correct type of the function or variable loaded. Using a - /// `Symbol` with a wrong type causes undefined behaviour. + /// Users of this API must specify the correct type of the function or variable loaded. /// /// It is up to the user of this library to ensure that no other calls to an MT-unsafe /// implementation of `dlerror` occur during the execution of this function. Failing that, the diff --git a/src/os/windows/mod.rs b/src/os/windows/mod.rs index fc358aa..a055517 100644 --- a/src/os/windows/mod.rs +++ b/src/os/windows/mod.rs @@ -216,8 +216,7 @@ impl Library { /// /// # Safety /// - /// Users of this API must specify the correct type of the function or variable loaded. Using a - /// `Symbol` with a wrong type causes undefined behaviour. + /// Users of this API must specify the correct type of the function or variable loaded. pub unsafe fn get(&self, symbol: &[u8]) -> Result, crate::Error> { ensure_compatible_types::()?; let symbol = cstr_cow_from_bytes(symbol)?; @@ -238,8 +237,7 @@ impl Library { /// /// # Safety /// - /// Users of this API must specify the correct type of the function or variable loaded. Using a - /// `Symbol` with a wrong type causes undefined behaviour. + /// Users of this API must specify the correct type of the function or variable loaded. pub unsafe fn get_ordinal(&self, ordinal: WORD) -> Result, crate::Error> { ensure_compatible_types::()?; with_get_last_error(|source| crate::Error::GetProcAddress { source }, || {