commit | 33049ec70cf0ef76ae413600ba9dd56e41a09ae1 | [log] [tgz] |
---|---|---|
author | Franz <franz@miltz.me> | Mon Apr 27 10:21:41 2020 +0100 |
committer | Anton Kochkov <xvilka@gmail.com> | Sat May 16 12:15:21 2020 +0800 |
tree | 70c544a92d15f86151a44051635406b5b9996ca2 | |
parent | 446d9b1d8098fa984e621b147a7743caba0d94bf [diff] |
Fix typo in describing ensure_len function
diff --git a/src/matrix_graph.rs b/src/matrix_graph.rs index 0e0c26c..2fdbfc1 100644 --- a/src/matrix_graph.rs +++ b/src/matrix_graph.rs
@@ -834,7 +834,7 @@ new_node_capacity + 1 } -/// Grow a Vec by appending the type's default value the `size` is reached. +/// Grow a Vec by appending the type's default value until the `size` is reached. fn ensure_len<T: Default>(v: &mut Vec<T>, size: usize) { if let Some(n) = size.checked_sub(v.len()) { v.reserve(n);