Skip to content

Commit b81c189

Browse files
committed
add comment
1 parent 958909a commit b81c189

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_type_ir/src/search_graph

1 file changed

+3
-0
lines changed

compiler/rustc_type_ir/src/search_graph/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ impl PathKind {
130130
///
131131
/// Given an inductive path `self` and a coinductive path `rest`,
132132
/// the path `self -> rest` would be coinductive.
133+
///
134+
/// This operation represents an ordering and would be equivalent
135+
/// to `max(self, rest)`.
133136
fn extend(self, rest: PathKind) -> PathKind {
134137
match (self, rest) {
135138
(PathKind::Coinductive, _) | (_, PathKind::Coinductive) => PathKind::Coinductive,

0 commit comments

Comments
 (0)