From 69454d81de917622626eca1d5fea17bcf66d7c2b Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 22 Apr 2024 13:09:17 -0400 Subject: [PATCH] chore: update comment --- candidate-selection/src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/candidate-selection/src/lib.rs b/candidate-selection/src/lib.rs index d5f15b9..58060df 100644 --- a/candidate-selection/src/lib.rs +++ b/candidate-selection/src/lib.rs @@ -15,15 +15,10 @@ pub trait Candidate { fn score_many(candidates: &[&Self]) -> Normalized; } -/// Perform a random selection of up to `LIMIT` of the provided candidates. Candidates are picked -/// using a random selection weighted by their individual score. Additional candidates are only -/// added as their inclusion in the selected set increases the combined score of the selected set. +/// Select up to `LIMIT` of the provided candidates. /// /// At least one candidate will be selected, as long as there is at least one candidate with an /// individual score greater than 0. -/// -/// If a candidate's score is below `min_score_cutoff` as a proportion of the max provider's -/// individual score, then the provider will not be selected. pub fn select<'c, Candidate, const LIMIT: usize>( candidates: &'c [Candidate], ) -> ArrayVec<&'c Candidate, LIMIT>