Skip to content

Commit d0623be

Browse files
committed
Fix typos
1 parent 4a38b7e commit d0623be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ cfg_if! {
219219
}
220220
}
221221

222-
/// Reister a function to be invoked by `getrandom` on custom targets. This
222+
/// Register a function to be invoked by `getrandom` on custom targets. This
223223
/// function will only be invoked on targets not supported by `getrandom`. This
224-
/// prevents crate dependancies from either inadvertantly or maliciously
224+
/// prevents crate dependencies from either inadvertently or maliciously
225225
/// overriding the secure RNG implementations in `getrandom`.
226226
///
227227
/// *This API requires the following crate features to be activated: `custom`*
228228
#[macro_export]
229229
#[cfg(feature = "custom")]
230230
macro_rules! register_custom_getrandom {
231231
($path:path) => {
232-
// We use an extern "C" function to get the garuntees of a stable ABI.
232+
// We use an extern "C" function to get the guarantees of a stable ABI.
233233
#[no_mangle]
234234
extern "C" fn __getrandom_custom(dest: *mut u8, len: usize) -> u32 {
235235
let slice = unsafe { ::std::slice::from_raw_parts_mut(dest, len) };

tests/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Explictly use the Custom RNG crates to link them in.
1+
// Explicitly use the Custom RNG crates to link them in.
22
#[cfg(feature = "test-stdweb")]
33
use getrandom_stdweb as _;
44
#[cfg(feature = "test-bindgen")]

0 commit comments

Comments
 (0)