Skip to content

Commit 5e660d1

Browse files
committed
fix misplaced doc comment
1 parent fa5db38 commit 5e660d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rent/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ impl Default for Rent {
8181
}
8282

8383
impl Rent {
84-
/// Calculate how much rent to burn from the collected rent.
85-
///
86-
/// The first value returned is the amount burned. The second is the amount
87-
/// to distribute to validators.
8884
pub fn lamports_per_byte_year(&self) -> u64 {
8985
u64::from_le_bytes(self.lamports_per_byte_year)
9086
}
@@ -105,6 +101,10 @@ impl Rent {
105101
}
106102
}
107103

104+
/// Calculate how much rent to burn from the collected rent.
105+
///
106+
/// The first value returned is the amount burned. The second is the amount
107+
/// to distribute to validators.
108108
pub fn calculate_burn(&self, rent_collected: u64) -> (u64, u64) {
109109
let burned_portion = (rent_collected * u64::from(self.burn_percent)) / 100;
110110
(burned_portion, rent_collected - burned_portion)

0 commit comments

Comments
 (0)