This commit is contained in:
Folkert 2022-04-27 20:22:52 +02:00
parent 7af2bb343c
commit 09fbd4a505
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1189,7 +1189,7 @@ fn canonicalize_pending_body<'a>(
opt_loc_annotation: Option<Loc<crate::annotation::Annotation>>,
) -> DefOutput {
// We treat closure definitions `foo = \a, b -> ...` differntly from other body expressions,
// We treat closure definitions `foo = \a, b -> ...` differently from other body expressions,
// because they need more bookkeeping (for tail calls, closure captures, etc.)
//
// Only defs of the form `foo = ...` can be closure declarations or self tail calls.