Fix typographical errors (#5194)
This commit is contained in:
@ -45,7 +45,7 @@ import {Panic} from "../Panic.sol";
|
||||
|
||||
const generate = ({ struct, node, valueType, indexType, blockSize }) => `\
|
||||
/**
|
||||
* @dev Binary heap that support values of type ${valueType}.
|
||||
* @dev Binary heap that supports values of type ${valueType}.
|
||||
*
|
||||
* Each element of that structure uses ${blockSize} storage slots.
|
||||
*/
|
||||
@ -237,7 +237,7 @@ function _swap(${struct} storage self, ${indexType} i, ${indexType} j) private {
|
||||
|
||||
/**
|
||||
* @dev Perform heap maintenance on \`self\`, starting at position \`pos\` (with the \`value\`), using \`comp\` as a
|
||||
* comparator, and moving toward the leafs of the underlying tree.
|
||||
* comparator, and moving toward the leaves of the underlying tree.
|
||||
*
|
||||
* NOTE: This is a private function that is called in a trusted context with already cached parameters. \`length\`
|
||||
* and \`value\` could be extracted from \`self\` and \`pos\`, but that would require redundant storage read. These
|
||||
|
||||
@ -66,7 +66,7 @@ function verify${suffix}(${(hash ? formatArgsMultiline : formatArgsSingleLine)(
|
||||
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
|
||||
* from \`leaf\` using \`proof\`. A \`proof\` is valid if and only if the rebuilt
|
||||
* hash matches the root of the tree. When processing the proof, the pairs
|
||||
* of leafs & pre-images are assumed to be sorted.
|
||||
* of leaves & pre-images are assumed to be sorted.
|
||||
*
|
||||
* This version handles proofs in ${location} with ${hash ? 'a custom' : 'the default'} hashing function.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user