Skip to content

Commit

Permalink
docs: fix descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofneto committed Nov 6, 2023
1 parent 93ebbac commit d2d4dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data_structures/mmr/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn compute_root(last_pos: felt252, peaks: Peaks) -> felt252 {
}

// @notice Count the number of bits set to 1 in a 256-bit unsigned integer
// @param n The 256-bit unsigned integer
// @param arg The 256-bit unsigned integer
// @return The number of bits set to 1 in n
fn count_ones(arg: u256) -> u256 {
let mut n = arg;
Expand Down
2 changes: 1 addition & 1 deletion src/encoding/rlp.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn rlp_decode(input: Words64) -> Result<(RLPItem, usize), felt252> {
// @notice RLP decodes into RLPItem::List
// @param input RLP encoded input, in little endian 64 bits words
// @param len Length of the input
// @return Result with RLPItem::List
// @return Result with a span of the decoded items and the decoded size of each
fn rlp_decode_list(ref input: Words64, len: usize) -> Result<Span<(Words64, usize)>, felt252> {
let mut i = 0;
let mut output = ArrayTrait::new();
Expand Down

0 comments on commit d2d4dd7

Please sign in to comment.