Removed unclear sentence

This commit is contained in:
William Henderson
2021-10-09 11:50:04 +01:00
parent 0e62077bd2
commit c483d866ec
3 changed files with 4 additions and 8 deletions
+1 -2
View File
@@ -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
///
+1 -2
View File
@@ -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
+2 -4
View File
@@ -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<T>(&self, symbol: &[u8]) -> Result<Symbol<T>, crate::Error> {
ensure_compatible_types::<T, FARPROC>()?;
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<T>(&self, ordinal: WORD) -> Result<Symbol<T>, crate::Error> {
ensure_compatible_types::<T, FARPROC>()?;
with_get_last_error(|source| crate::Error::GetProcAddress { source }, || {