@@ -74,7 +74,7 @@ use std::borrow::Borrow;
74
74
///
75
75
/// 2. Referenced closure: If Dfs takes a reference to a closure, it no longer
76
76
/// needs to be generic on the closures type. However, it limits where Dfs can
77
- /// be used, since its now bound by the lifetime of the reference. It also
77
+ /// be used, since it's now bound by the lifetime of the reference. It also
78
78
/// doesn't solve the issue with other struct using Dfs, because you can't have
79
79
/// the closure anywhere when not using the Dfs.
80
80
///
@@ -269,19 +269,19 @@ where
269
269
{
270
270
// The meaning of markers:
271
271
//
272
- // If its on the stack it means we are still visiting it or its children.
272
+ // If it's on the stack it means we are still visiting it or its children.
273
273
//
274
274
// If its exit marked, it means when we are finished visiting it and its
275
275
// children, we will call the 'on_exit' closure on it, and then pop it.
276
- // If its not exit marked, it means this instance of it on the stack was
276
+ // If it's not exit marked, it means this instance of it on the stack was
277
277
// never used for visiting this vertex's children and we just pop it, without
278
278
// calling the closure.
279
279
//
280
280
// If it is marked visited it means we are either visiting its children, or
281
281
// we are finished doing so. Either way, it shouldn't go on the stack again
282
282
// at any point.
283
283
284
- // Pop any vertices that we are done visiting (and since its on the top of the
284
+ // Pop any vertices that we are done visiting (and since it's on the top of the
285
285
// stack, we must be done visiting its children).
286
286
while self . advance_next_exit ( ) . is_some ( )
287
287
{ }
0 commit comments