Skip to content

Commit

Permalink
Add impl macros to example docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Feb 10, 2024
1 parent aa55ca9 commit 55ed2f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ impl std::error::Error for CliError {
/// }
///
/// impl OnlyArgs for Args {
/// const HELP: &'static str = onlyargs::impl_help!();
/// const VERSION: &'static str = onlyargs::impl_version!();
///
/// fn parse(args: Vec<OsString>) -> Result<Self, CliError> {
/// let mut verbose = false;
///
Expand Down

0 comments on commit 55ed2f4

Please sign in to comment.