Skip to content

Commit b91c04a

Browse files
committed
improve spelling
1 parent 6cabc31 commit b91c04a

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

partialdebug-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use syn::parse::{Parse, ParseStream};
66
use syn::spanned::Spanned;
77
use syn::*;
88

9-
/// The non exhaustive version of `PartialDebug`
9+
/// The non-exhaustive version of `PartialDebug`
1010
///
1111
/// Requires the `unstable` feature.
1212
/// Only available for structs with named fields.

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Derive Debug for types where not all fields implement Debug.
22
//!
33
//! This crate works on stable and with `no_std`.
4-
//! On nightly the `unstable` feature can be used for specialization based trait detection and/or `..` formatting.
4+
//! On nightly the `unstable` feature can be used for specialization-based trait detection and/or `..` formatting.
55
//!
66
//! ### Placeholder with Type Info
77
//!
@@ -58,11 +58,7 @@
5858
//! assert_eq!(format!("{:?}", Dog::new()), "Dog { legs: 4, eyes: 2, dna: Unknown }");
5959
//! ```
6060
//!
61-
//! ### Non Exhaustive
62-
//!
63-
//! Only available on nightly after setting the `unstable` feature.
64-
//!
65-
//! Requires the `debug_non_exhaustive` feature to be enabled in user code.
61+
//! ### Non-Exhaustive
6662
//!
6763
//! Only available for structs with named fields.
6864

src/no_specialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! Using `DebugDetector::<SomeType>::as_debug(&something)` then acts as a trait detector.
1111
//!
12-
//! Note that if `SomeType` is generic the detector won't work.
12+
//! Note that if `SomeType` is generic, the detector won't work.
1313
1414
use core::fmt::Debug;
1515

0 commit comments

Comments
 (0)