Skip to content

Commit

Permalink
doc refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed Dec 18, 2023
1 parent 505f05c commit 22ca050
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lrlex/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ mod unstable {
pub trait UnstableTrait {}
}

/// A module for lifting restrictions on visibility of unstable features.
/// A module for lifting restrictions on visibility by enabling unstable features.
///
/// See the sources for a complete list of features, and members.
pub mod unstable_api {
/// Unstable functions that take a value `UnstableApi` require
/// the "_unstable_api" feature. This feature controls
Expand All @@ -220,7 +222,7 @@ pub mod unstable_api {
/// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`)
/// ```
/// struct Bar;
/// impl unstable_api::UnstableTrait for Bar{};
/// impl unstable_api::UnstableTrait for Bar{}
/// impl Foo for Bar {
/// fn foo(key: unstable_api::UnstableApi) {
/// ...
Expand All @@ -242,6 +244,7 @@ pub mod unstable_api {
/// Access to it does not require any features to be enabled.
///
/// Q. When this should be used?
///
/// A. When generated code needs to call internal api within it,
/// where you do not want the caller to have to enable any features
/// to use the generated code.
Expand Down
7 changes: 5 additions & 2 deletions lrpar/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ mod unstable {
pub trait UnstableTrait {}
}

/// A module for lifting restrictions on visibility of unstable features.
/// A module for lifting restrictions on visibility by enabling unstable features.
///
/// See the sources for a complete list of features, and members.
pub mod unstable_api {
/// Unstable functions that take a value `UnstableApi` require
/// the "_unstable_api" feature. This feature controls
Expand All @@ -265,7 +267,7 @@ pub mod unstable_api {
/// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`)
/// ```
/// struct Bar;
/// impl unstable_api::UnstableTrait for Bar{};
/// impl unstable_api::UnstableTrait for Bar{}
/// impl Foo for Bar {
/// fn foo(key: unstable_api::UnstableApi) {
/// ...
Expand All @@ -287,6 +289,7 @@ pub mod unstable_api {
/// Access to it does not require any features to be enabled.
///
/// Q. When this should be used?
///
/// A. When generated code needs to call internal api within it,
/// where you do not want the caller to have to enable any features
/// to use the generated code.
Expand Down

0 comments on commit 22ca050

Please sign in to comment.