| commit | 9b5463047295fd2e5d09e2d677e36fa05d08bc8c | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Fri Apr 16 16:05:05 2021 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Fri Apr 16 16:05:22 2021 -0700 |
| tree | bc43f2bc5a51f539e85764c01be03a979b1c2480 | |
| parent | 43fe4b55e014086c5ee66d92fc1f029a84682d89 [diff] [blame] |
Fill in vector pop method comment
diff --git a/src/cxx_vector.rs b/src/cxx_vector.rs index cc7a777..808f924 100644 --- a/src/cxx_vector.rs +++ b/src/cxx_vector.rs
@@ -163,6 +163,8 @@ } } + /// Removes the last element from a vector and returns it, or `None` if the + /// vector is empty. pub fn pop(self: Pin<&mut Self>) -> Option<T> where T: ExternType<Kind = Trivial>,