about summary refs log tree commit diff
path: root/src/librustc_data_structures/graph
diff options
context:
space:
mode:
authorHavvy <ryan.havvy@gmail.com>2016-11-02 01:45:12 -0700
committerHavvy <ryan.havvy@gmail.com>2016-11-02 01:48:11 -0700
commit7d91581cca025fbf308ed3402d04a55ea0bb0267 (patch)
tree12a1f8b60590d99796a5e2a5c48cec51c1e49a90 /src/librustc_data_structures/graph
parentfcf02623ee59bb21b948aea63b41b62609a7e663 (diff)
downloadrust-7d91581cca025fbf308ed3402d04a55ea0bb0267.tar.gz
rust-7d91581cca025fbf308ed3402d04a55ea0bb0267.zip
Change Make comment into doc comment on Graph::iterate_until_fixed_point
Diffstat (limited to 'src/librustc_data_structures/graph')
-rw-r--r--src/librustc_data_structures/graph/mod.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/librustc_data_structures/graph/mod.rs b/src/librustc_data_structures/graph/mod.rs
index a47374feecd..6b408378997 100644
--- a/src/librustc_data_structures/graph/mod.rs
+++ b/src/librustc_data_structures/graph/mod.rs
@@ -282,14 +282,11 @@ impl<N: Debug, E: Debug> Graph<N, E> {
         self.incoming_edges(target).sources()
     }
 
-    // # Fixed-point iteration
-    //
-    // A common use for graphs in our compiler is to perform
-    // fixed-point iteration. In this case, each edge represents a
-    // constraint, and the nodes themselves are associated with
-    // variables or other bitsets. This method facilitates such a
-    // computation.
-
+    /// A common use for graphs in our compiler is to perform
+    /// fixed-point iteration. In this case, each edge represents a
+    /// constraint, and the nodes themselves are associated with
+    /// variables or other bitsets. This method facilitates such a
+    /// computation.
     pub fn iterate_until_fixed_point<'a, F>(&'a self, mut op: F)
         where F: FnMut(usize, EdgeIndex, &'a Edge<E>) -> bool
     {