mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-08-01 12:51:30 +00:00
Fix typos
This commit is contained in:
@@ -12,7 +12,7 @@ extern "C" {
|
|||||||
/// Initializes some parameters for sapling-crypto,
|
/// Initializes some parameters for sapling-crypto,
|
||||||
/// returning a pointer to the parameters. You should
|
/// returning a pointer to the parameters. You should
|
||||||
/// free this when you're done with
|
/// free this when you're done with
|
||||||
/// `librustzcash_init_params()`.
|
/// `librustzcash_free_params()`.
|
||||||
librustzcash_params* librustzcash_init_params();
|
librustzcash_params* librustzcash_init_params();
|
||||||
|
|
||||||
/// Frees some parameters that were previously returned
|
/// Frees some parameters that were previously returned
|
||||||
|
@@ -90,7 +90,7 @@ pub extern "system" fn librustzcash_merkle_hash(
|
|||||||
).into_xy().0.into_repr();
|
).into_xy().0.into_repr();
|
||||||
|
|
||||||
// Should be okay, caller is responsible for ensuring the pointer
|
// Should be okay, caller is responsible for ensuring the pointer
|
||||||
// is valid.
|
// is a valid pointer to 32 bytes that can be mutated.
|
||||||
let result = unsafe { &mut *result };
|
let result = unsafe { &mut *result };
|
||||||
|
|
||||||
tmp.write_be(&mut result[..]).unwrap();
|
tmp.write_be(&mut result[..]).unwrap();
|
||||||
|
Reference in New Issue
Block a user