diff --git a/book/src/getting-started.md b/book/src/getting-started.md index bab08251..757ba6f0 100644 --- a/book/src/getting-started.md +++ b/book/src/getting-started.md @@ -4,7 +4,7 @@ ```toml [dependencies] -logos = "0.14.0" +logos = "0.14.1" ``` Then, you can automatically derive the [`Logos`](https://docs.rs/logos/latest/logos/trait.Logos.html) trait on your `enum` using the `Logos` derive macro: diff --git a/tests/tests/clone.rs b/tests/tests/clone.rs index 01a5fcc6..761ab3c4 100644 --- a/tests/tests/clone.rs +++ b/tests/tests/clone.rs @@ -33,7 +33,7 @@ fn test_clone_ub() { let mut lexer = Token::lexer("a"); assert_eq!(lexer.next(), Some(Ok(Token::Evil(Evil::default())))); - // In logos 0.14.0, this causes use-after-free (UB), + // In logos 0.14.1, this causes use-after-free (UB), // because `Clone` dereferences the value returned by the last call to `lexer.next()`, // which got deallocated. // A real-life example where this could happen is with `Rc`. @@ -51,7 +51,7 @@ fn test_clone_leak() { }; assert_eq!(evil.0.get(), 0); - // In logos 0.14.0, this causes a memory leak because `evil` is cloned with `lexer`. + // In logos 0.14.1, this causes a memory leak because `evil` is cloned with `lexer`. // This produces `evil.0.get() == 1`. It will fail even on `cargo test`. let mut lexer2 = lexer.clone(); assert_eq!(evil.0.get(), 0);