From 8e59be318c73d33adf99a76a48ebd0f655b97968 Mon Sep 17 00:00:00 2001 From: Cesar Eduardo Barros Date: Sat, 12 Dec 2015 20:05:06 -0200 Subject: [PATCH] Mention VecDeque in linkedlist lint I couldn't find anything named RingBuf in the standard library. Some search revealed that it had been renamed to VecDeque before the first stable Rust release. --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index c505b612a8c1..9bc506432596 100644 --- a/src/types.rs +++ b/src/types.rs @@ -26,7 +26,7 @@ pub struct TypePass; /// **Example:** `struct X { values: Box> }` declare_lint!(pub BOX_VEC, Warn, "usage of `Box>`, vector elements are already on the heap"); -/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or `RingBuf`. +/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or a `VecDeque` (formerly called `RingBuf`). /// /// **Why is this bad?** Gankro says: ///