mirror of
https://github.com/openharmony/third_party_rust_libloading.git
synced 2026-07-19 13:16:19 -04:00
Removed unclear sentence
This commit is contained in:
+1
-2
@@ -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
@@ -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
|
||||
|
||||
@@ -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 }, || {
|
||||
|
||||
Reference in New Issue
Block a user