Skip to content

Commit 228cd00

Browse files
compiler: change "bare function" doc-comments too
Co-authored-by: León Orell Valerian Liehr <[email protected]>
1 parent 1af6396 commit 228cd00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ pub enum TyKind {
24552455
///
24562456
/// Desugars into `Pin<&'a T>` or `Pin<&'a mut T>`.
24572457
PinnedRef(Option<Lifetime>, MutTy),
2458-
/// A bare function (e.g., `fn(usize) -> bool`).
2458+
/// A function pointer type (e.g., `fn(usize) -> bool`).
24592459
FnPtr(P<FnPtrTy>),
24602460
/// An unsafe existential lifetime binder (e.g., `unsafe<'a> &'a ()`).
24612461
UnsafeBinder(P<UnsafeBinderTy>),

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3645,7 +3645,7 @@ pub enum TyKind<'hir, Unambig = ()> {
36453645
Ptr(MutTy<'hir>),
36463646
/// A reference (i.e., `&'a T` or `&'a mut T`).
36473647
Ref(&'hir Lifetime, MutTy<'hir>),
3648-
/// A bare function (e.g., `fn(usize) -> bool`).
3648+
/// A function pointer (e.g., `fn(usize) -> bool`).
36493649
FnPtr(&'hir FnPtrTy<'hir>),
36503650
/// An unsafe binder type (e.g. `unsafe<'a> Foo<'a>`).
36513651
UnsafeBinder(&'hir UnsafeBinderTy<'hir>),

0 commit comments

Comments
 (0)