Skip to content

Commit 31e35cd

Browse files
authored
Update comment to be more descriptive
1 parent 22c55a9 commit 31e35cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,7 @@ impl<T, A: Allocator> Vec<T, A> {
24892489
/// #![feature(push_mut)]
24902490
///
24912491
/// let mut vec = vec![];
2492-
/// // Polonius moment.
2492+
/// // Due to current borrow checker limitations (see -Zpolonius), this is the only way to spell this right now.
24932493
/// let last = if let Some(v) = vec.last_mut() { v } else { vec.push_mut(0) };
24942494
/// *last += 6;
24952495
/// assert_eq!(vec, [6]);

0 commit comments

Comments
 (0)