1
Fork 0

Fix typos

This commit is contained in:
Dániel Buga 2020-10-29 16:51:46 +01:00
parent 717eb6ccea
commit 3fba948510
5 changed files with 9 additions and 9 deletions

View file

@ -516,7 +516,7 @@ impl<'a> AstValidator<'a> {
self.session.source_map().guess_head_span(self.extern_mod.unwrap().span)
}
/// An `fn` in `extern { ... }` cannot have qualfiers, e.g. `async fn`.
/// An `fn` in `extern { ... }` cannot have qualifiers, e.g. `async fn`.
fn check_foreign_fn_headerless(&self, ident: Ident, span: Span, header: FnHeader) {
if header.has_qualifiers() {
self.err_handler()