Docs fix
This commit is contained in:
parent
69e75e116c
commit
fdeb60c3bd
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,7 @@
|
||||||
//! Conversely, to calculate probable number of hashes required to satisfy a given minimum
|
//! Conversely, to calculate probable number of hashes required to satisfy a given minimum
|
||||||
//! difficulty.
|
//! difficulty.
|
||||||
//!
|
//!
|
||||||
|
//! ```
|
||||||
//! fn average(difficulty: u128) -> u128 {
|
//! fn average(difficulty: u128) -> u128 {
|
||||||
//! let m = u128::max_value();
|
//! let m = u128::max_value();
|
||||||
//! if difficulty == m {
|
//! if difficulty == m {
|
||||||
|
@ -93,6 +94,7 @@
|
||||||
//! }
|
//! }
|
||||||
//! m / (m - difficulty)
|
//! m / (m - difficulty)
|
||||||
//! }
|
//! }
|
||||||
|
//! ```
|
||||||
|
|
||||||
mod proof_of_work;
|
mod proof_of_work;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue