Skip to content

Commit 5d650bb

Browse files
Rollup merge of #98944 - pierwill:flatset-docs, r=Dylan-DPC
Edit `rustc_mir_dataflow::framework::lattice::FlatSet` docs Cosmetic improvements. Adds a paragraph break, and ellipses to signify arbitrary size of a flat set.
2 parents 3fe0191 + f8b16c5 commit 5d650bb

File tree

1 file changed

+7
-5
lines changed
  • compiler/rustc_mir_dataflow/src/framework

1 file changed

+7
-5
lines changed

compiler/rustc_mir_dataflow/src/framework/lattice.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,16 @@ impl<T: JoinSemiLattice> MeetSemiLattice for Dual<T> {
199199
}
200200

201201
/// Extends a type `T` with top and bottom elements to make it a partially ordered set in which no
202-
/// value of `T` is comparable with any other. A flat set has the following [Hasse diagram]:
202+
/// value of `T` is comparable with any other.
203+
///
204+
/// A flat set has the following [Hasse diagram]:
203205
///
204206
/// ```text
205-
/// top
206-
/// / / \ \
207+
/// top
208+
/// / ... / / \ \ ... \
207209
/// all possible values of `T`
208-
/// \ \ / /
209-
/// bottom
210+
/// \ ... \ \ / / ... /
211+
/// bottom
210212
/// ```
211213
///
212214
/// [Hasse diagram]: https://en.wikipedia.org/wiki/Hasse_diagram

0 commit comments

Comments
 (0)