Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Nov 14, 2022
1 parent c2e4f85 commit 848f121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use core::ops::{Deref, DerefMut};
///
/// # Construction
///
/// The `Array` can be constructed using [`From<[T; N]>`](From)/[`Into<miniconf::Array>`]
/// An `Array` can be constructed using [`From<[T; N]>`](From)/[`Into<miniconf::Array>`]
/// and the contained value can be accessed through [`Deref`]/[`DerefMut`].
#[derive(Clone, Copy, PartialEq, Eq, Debug, PartialOrd, Ord, Hash)]
pub struct Array<T, const N: usize>([T; N]);
Expand Down
8 changes: 4 additions & 4 deletions src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use core::ops::{Deref, DerefMut};
///
/// Miniconf supports optional values in two forms.
///
/// In both forms, the `Option` may be marked as `#[miniconf(defer)]` attribute,
/// and be `None` at runtime. This makes the corresponding part of the namespace inaccessible
/// In both forms, the `Option` may be marked with `#[miniconf(defer)]`
/// and be `None` at run-time. This makes the corresponding part of the namespace inaccessible
/// at run-time. It will still be iterated over by [`Miniconf::iter_paths()`] but cannot be
/// `get()` or `set()` using the [`Miniconf`] API.
///
Expand All @@ -17,7 +17,7 @@ use core::ops::{Deref, DerefMut};
/// namespaces will not be exposed for it.
///
/// The first form is the [`miniconf::Option`](Option) type which optionally exposes its
/// interior `Miniconf` value as a sub-tree. A [`miniconf::Option`](Option) should usually be marked
/// interior `Miniconf` value as a sub-tree. A [`miniconf::Option`](Option) should usually be
/// with `#[miniconf(defer)]`.
///
/// Miniconf also allows for the normal usage of Rust [`core::option::Option`] types. In this case,
Expand All @@ -27,7 +27,7 @@ use core::ops::{Deref, DerefMut};
///
/// # Construction
///
/// The `miniconf::Option` can be constructed using [`From<core::option::Option>`]/[`Into<miniconf::Option>`]
/// A `miniconf::Option` can be constructed using [`From<core::option::Option>`]/[`Into<miniconf::Option>`]
/// and the contained value can be accessed through [`Deref`]/[`DerefMut`].
#[derive(
Clone,
Expand Down

0 comments on commit 848f121

Please sign in to comment.