Skip to content

Commit 195861a

Browse files
committed
Edit docs
1 parent 43c86ad commit 195861a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ impl<N, E, Ty=Directed, Ix=DefIndex> Graph<N, E, Ty, Ix>
339339
ty: PhantomData}
340340
}
341341

342-
/// Return the capacity of the graph's node and edge `Vec`s.
342+
/// Return the current node and edge capacity of the graph.
343343
///
344344
/// Computes in **O(1)** time.
345345
pub fn capacity(&self) -> (usize, usize) {

src/graphmap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<N, E> GraphMap<N, E>
6868
}
6969
}
7070

71-
/// Return the capacity of the graph's node and edge `HashMap`s.
71+
/// Return the current node and edge capacity of the graph.
7272
pub fn capacity(&self) -> (usize, usize) {
7373
(self.nodes.capacity(), self.edges.capacity())
7474
}

0 commit comments

Comments
 (0)