From 1f5cd27eec2ff6c59fa7ce9a6a255936ba092823 Mon Sep 17 00:00:00 2001 From: fritzrehde Date: Mon, 30 Oct 2023 14:59:26 +0100 Subject: [PATCH] fixed typos --- README.md | 2 +- src/lib.rs | 2 +- testcrate/tests/compile-fail/new-invalid-value.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9b1ba22..9154782 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ let _ = Foo::new(true); ``` Generic types are supported; in particular, `PhantomData` fields will be not -included in the argument list and will be intialized automatically: +included in the argument list and will be initialized automatically: ```rust use std::marker::PhantomData; diff --git a/src/lib.rs b/src/lib.rs index 9187b69..e5e119d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,7 +65,7 @@ //! ``` //! //! Generic types are supported; in particular, `PhantomData` fields will be not -//! included in the argument list and will be intialized automatically: +//! included in the argument list and will be initialized automatically: //! //! ```rust //! use derive_new::new; diff --git a/testcrate/tests/compile-fail/new-invalid-value.rs b/testcrate/tests/compile-fail/new-invalid-value.rs index ecfc311..7fab768 100644 --- a/testcrate/tests/compile-fail/new-invalid-value.rs +++ b/testcrate/tests/compile-fail/new-invalid-value.rs @@ -2,7 +2,7 @@ extern crate derive_new; #[derive(new)] -//~^ ERROR produced unparseable tokens +//~^ ERROR produced unparsable tokens struct Foo { #[new(value = "hello@world")] //~^ ERROR expected one of