Skip to content

Commit eb5c4ff

Browse files
committed
Improve DynamicPenaltyScorer documentation.
1 parent 9204a01 commit eb5c4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/routing/scoring.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ impl<F> DynamicPenaltyScorer<F>
253253
where
254254
F: Fn(u64, u64, u64, &NodeId, &NodeId) -> u64,
255255
{
256-
/// Creates a new scorer using `penalty_func`.
256+
/// Creates a new scorer that applies a closure `penalty_func`, which takes the same arguments
257+
/// as [`Score::channel_penalty_msat`].
257258
pub fn with_penalty_func(penalty_func: F) -> Self
258259
{
259260
Self { penalty_func }

0 commit comments

Comments
 (0)