Skip to content

Commit c9158ce

Browse files
authored
Rollup merge of #148791 - luca3s:fix-doc-comment, r=lqd
fix "is_closure_like" doc comment Noticed that the [docs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.is_closure_like) stopped in the middle of the sentence. The text exists, but wasn't rendered because it was a regular comment.
2 parents 3382d31 + 5ee331f commit c9158ce

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ impl<'tcx> TyCtxt<'tcx> {
607607
/// have the same `DefKind`.
608608
///
609609
/// Note that closures have a `DefId`, but the closure *expression* also has a
610-
// `HirId` that is located within the context where the closure appears (and, sadly,
611-
// a corresponding `NodeId`, since those are not yet phased out). The parent of
612-
// the closure's `DefId` will also be the context where it appears.
610+
/// `HirId` that is located within the context where the closure appears (and, sadly,
611+
/// a corresponding `NodeId`, since those are not yet phased out). The parent of
612+
/// the closure's `DefId` will also be the context where it appears.
613613
pub fn is_closure_like(self, def_id: DefId) -> bool {
614614
matches!(self.def_kind(def_id), DefKind::Closure)
615615
}

0 commit comments

Comments
 (0)