Add a comment regarding behavior of extend_argument_list_for_named

This commit is contained in:
Ayaz Hafiz 2022-12-27 10:42:35 -06:00
parent 830843da82
commit e7aaeb931a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1610,6 +1610,10 @@ impl<'a> LambdaSet<'a> {
}
}
/// If `lambda_name` captures, extend the arguments to the lambda with the lambda set, from
/// which the lambda should extract its captures from.
///
/// If `lambda_name` doesn't capture, the arguments are unaffected.
pub(crate) fn extend_argument_list_for_named(
&self,
arena: &'a Bump,