Skip to content

Commit

Permalink
Edit rustc_mir_dataflow::framework::lattice::FlatSet docs
Browse files Browse the repository at this point in the history
Cosmetic improvements. Adds a paragraph break, and
ellipses to signify arbitrary size of a flat set.
  • Loading branch information
pierwill committed Jul 5, 2022
1 parent 7425fb2 commit f8b16c5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compiler/rustc_mir_dataflow/src/framework/lattice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,16 @@ impl<T: JoinSemiLattice> MeetSemiLattice for Dual<T> {
}

/// Extends a type `T` with top and bottom elements to make it a partially ordered set in which no
/// value of `T` is comparable with any other. A flat set has the following [Hasse diagram]:
/// value of `T` is comparable with any other.
///
/// A flat set has the following [Hasse diagram]:
///
/// ```text
/// top
/// / / \ \
/// top
/// / ... / / \ \ ... \
/// all possible values of `T`
/// \ \ / /
/// bottom
/// \ ... \ \ / / ... /
/// bottom
/// ```
///
/// [Hasse diagram]: https://en.wikipedia.org/wiki/Hasse_diagram
Expand Down

0 comments on commit f8b16c5

Please sign in to comment.