File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -219,17 +219,17 @@ cfg_if! {
219
219
}
220
220
}
221
221
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
223
223
/// 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
225
225
/// overriding the secure RNG implementations in `getrandom`.
226
226
///
227
227
/// *This API requires the following crate features to be activated: `custom`*
228
228
#[ macro_export]
229
229
#[ cfg( feature = "custom" ) ]
230
230
macro_rules! register_custom_getrandom {
231
231
( $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.
233
233
#[ no_mangle]
234
234
extern "C" fn __getrandom_custom( dest: * mut u8 , len: usize ) -> u32 {
235
235
let slice = unsafe { :: std:: slice:: from_raw_parts_mut( dest, len) } ;
Original file line number Diff line number Diff line change 1
- // Explictly use the Custom RNG crates to link them in.
1
+ // Explicitly use the Custom RNG crates to link them in.
2
2
#[ cfg( feature = "test-stdweb" ) ]
3
3
use getrandom_stdweb as _;
4
4
#[ cfg( feature = "test-bindgen" ) ]
You can’t perform that action at this time.
0 commit comments