Skip to content

Commit 9ef140b

Browse files
committed
Improve comment
1 parent 8d41a14 commit 9ef140b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/env/src/engine/on_chain/pallet_revive.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ fn solidity_encode_bytes(
269269

270270
/// Returns the Solidity word padded length for the given input length (i.e. next multiple
271271
/// of 32 for the given number).
272-
// `.div_ceil()` would allocate on the heap
272+
///
273+
/// # Developer Note
274+
///
275+
// The implementation does not use `.div_ceil()`, as that function is more complex
276+
// and would use up more stack space.
273277
#[allow(clippy::manual_div_ceil)]
274278
#[inline(always)]
275279
const fn solidity_padded_len(len: usize) -> usize {

0 commit comments

Comments
 (0)