Skip to content

Commit f5e95c4

Browse files
committed
Improve DynamicPenaltyScorer documentation.
1 parent b12c6f7 commit f5e95c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ impl<F> DynamicPenaltyScorer<F>
271271
where
272272
F: Fn(u64, u64, u64, &NodeId, &NodeId) -> u64,
273273
{
274-
/// Creates a new scorer using `penalty_func`.
274+
/// Creates a new scorer that applies a closure `penalty_func`, which takes the same arguments
275+
/// as [`Score::channel_penalty_msat`].
275276
pub fn with_penalty_func(penalty_func: F) -> Self
276277
{
277278
Self { penalty_func }

0 commit comments

Comments
 (0)