From ee60c5133fc3a35740e6a04ffeb87cb2c1b03aa7 Mon Sep 17 00:00:00 2001 From: Austin Rooks Date: Thu, 17 Aug 2023 11:29:05 -0500 Subject: [PATCH] Update sixth-cursors-intro.md Updates to current year and version of Rust. --- src/sixth-cursors-intro.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sixth-cursors-intro.md b/src/sixth-cursors-intro.md index b4522c0..a29e72d 100644 --- a/src/sixth-cursors-intro.md +++ b/src/sixth-cursors-intro.md @@ -60,7 +60,7 @@ Sorry what? There was an [RFC in 2018 to add Cursors to Rust's LinkedList](https > With a Cursor one can seek back and forth through a list and get the current element. With a CursorMut One can seek back and forth and get mutable references to elements, and it can insert and delete elements before and behind the current element (along with performing several list operations such as splitting and splicing). -*Current element*? This cursor is *on* elements, not between them! I can't believe they didn't accept my totally rock-solid argument! So yeah you can just go use the Cursor in std... wait, it's [2022, and Rust 1.60 still has Cursor marked as unstable](https://doc.rust-lang.org/1.60.0/std/collections/linked_list/struct.CursorMut.html)? +*Current element*? This cursor is *on* elements, not between them! I can't believe they didn't accept my totally rock-solid argument! So yeah you can just go use the Cursor in std... wait, it's [2023, and Rust 1.71 still has Cursor marked as unstable](https://doc.rust-lang.org/1.71.0/std/collections/linked_list/struct.CursorMut.html)? Hey wait: @@ -120,4 +120,4 @@ I have my quibbles with some of the terminology std uses, but cursors are always The std API talks about operations before "before" (towards the front) and "after" (towards the back), and instead of `next` and `next_back`, it... calls things `move_next` and `move_prev`. HRM. Ok so they're getting into a bit of the iterator terminology, but at least `next` doesn't evoke front/back, and helps you orient how things behave compared to the iterators. -We can work with this. \ No newline at end of file +We can work with this.