Add a comment about "&mut [&mut ]"

This commit is contained in:
Ian Jackson 2022-02-17 11:07:52 +00:00
parent ed57157d84
commit 094ddd7cd7
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ impl<S: AbstractSpec, C: AbstractCirc> OpenEntry<S, C> {
/// Requires that `ents` is nonempty, and that every element of `ents`
/// supports `spec`.
fn find_best<'a>(
// we do not mutate `ents`, but to return `&mut Self` we must have a mutable borrow
ents: &'a mut [&'a mut Self],
usage: &<S as AbstractSpec>::Usage,
parallelism: usize,