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.
This commit is contained in:
Guillaume Gomez 2022-07-05 23:43:33 +02:00 committed by GitHub
commit 5d650bb92e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,14 +199,16 @@ fn meet(&mut self, other: &Self) -> bool {
}
/// 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