]> git.lizzy.rs Git - rust.git/commitdiff
clarify diagonal arrows
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 21 Aug 2015 14:54:24 +0000 (10:54 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 21 Aug 2015 14:55:04 +0000 (10:55 -0400)
src/librustc_data_structures/transitive_relation.rs

index 384e94fcc5eb5c3c5bf4196e8bb7555c5d4b094e..311ca054e8702864ee001bcef29f2798d3ae4a42 100644 (file)
@@ -112,6 +112,7 @@ pub fn contains(&self, a: &T, b: &T) -> bool {
     /// b -> b1 ---+
     ///
     /// // returns Some(x), which is not LUB (there is none)
+    /// // diagonal edges run left-to-right
     /// a -> a1 -> x
     ///   \/       ^
     ///   /\       |
@@ -400,6 +401,7 @@ fn mubs_best_choice_scc() {
 
 #[test]
 fn bub_crisscross() {
+    // diagonal edges run left-to-right
     // a -> a1 -> x
     //   \/       ^
     //   /\       |
@@ -419,6 +421,7 @@ fn bub_crisscross() {
 
 #[test]
 fn bub_crisscross_more() {
+    // diagonal edges run left-to-right
     // a -> a1 -> a2 -> a3 -> x
     //   \/    \/             ^
     //   /\    /\             |