Skip to content

Commit

Permalink
doc: explain how to use an actual app name in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk authored Nov 26, 2024
1 parent 88e2f4d commit 068f514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//! # use bpaf::doc::Doc;
//! let mut doc = Doc::default();
//! doc.emphasis("Usage: ");
//! doc.literal("my_program");
//! doc.literal("my_program"); // or use `env!("CARGO_BIN_NAME")` to get the name of the executable
//! // do something with it
//! drop(doc)
//! ```
Expand Down

0 comments on commit 068f514

Please sign in to comment.