Skip to content

Commit 997b815

Browse files
authored
Quote identifiers in vec/mod.rs
1 parent cfd95f1 commit 997b815

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ impl<T, A: Allocator> Vec<T, A> {
20752075
#[inline]
20762076
#[unstable(feature = "push_mut", issue = "135974")]
20772077
#[track_caller]
2078-
#[must_use = "if you don't need a reference to the value, use Vec::insert instead"]
2078+
#[must_use = "if you don't need a reference to the value, use `Vec::insert` instead"]
20792079
pub fn insert_mut(&mut self, index: usize, element: T) -> &mut T {
20802080
#[cold]
20812081
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))]
@@ -2594,7 +2594,7 @@ impl<T, A: Allocator> Vec<T, A> {
25942594
#[inline]
25952595
#[unstable(feature = "push_mut", issue = "135974")]
25962596
#[track_caller]
2597-
#[must_use = "if you don't need a reference to the value, use Vec::push instead"]
2597+
#[must_use = "if you don't need a reference to the value, use `Vec::push` instead"]
25982598
pub fn push_mut(&mut self, value: T) -> &mut T {
25992599
// Inform codegen that the length does not change across grow_one().
26002600
let len = self.len;
@@ -2628,7 +2628,7 @@ impl<T, A: Allocator> Vec<T, A> {
26282628
#[unstable(feature = "push_mut", issue = "135974")]
26292629
// #[unstable(feature = "vec_push_within_capacity", issue = "100486")]
26302630
#[inline]
2631-
#[must_use = "if you don't need a reference to the value, use Vec::push_within_capacity instead"]
2631+
#[must_use = "if you don't need a reference to the value, use `Vec::push_within_capacity` instead"]
26322632
pub fn push_mut_within_capacity(&mut self, value: T) -> Result<&mut T, T> {
26332633
if self.len == self.buf.capacity() {
26342634
return Err(value);

0 commit comments

Comments
 (0)