Skip to content

Commit

Permalink
docs: Small tweak to lib docs
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jul 19, 2022
1 parent 318e0ab commit 5e02445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
//! ```
//! *(See also [feature flag reference][_features])*
//!
//! Then in `main.rs`:
//! Then define your CLI in `main.rs`:

This comment has been minimized.

Copy link
@Be-ing

Be-ing Jul 19, 2022

s/define/declare/?

This comment has been minimized.

Copy link
@epage

epage Jul 19, 2022

Author Member

I think both work.

#![cfg_attr(not(feature = "derive"), doc = " ```ignore")]
#![cfg_attr(feature = "derive", doc = " ```no_run")]
#![doc = include_str!("../examples/demo.rs")]
//! ```
//!
//! Then try it out:
//! And try it out:
#![doc = include_str!("../examples/demo.md")]
//!
//! See also the derive [tutorial][_derive::_tutorial] and [reference][_derive]
Expand Down

0 comments on commit 5e02445

Please sign in to comment.