Skip to content

Commit 068f514

Browse files
authored
doc: explain how to use an actual app name in the documentation
1 parent 88e2f4d commit 068f514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
//! # use bpaf::doc::Doc;
3737
//! let mut doc = Doc::default();
3838
//! doc.emphasis("Usage: ");
39-
//! doc.literal("my_program");
39+
//! doc.literal("my_program"); // or use `env!("CARGO_BIN_NAME")` to get the name of the executable
4040
//! // do something with it
4141
//! drop(doc)
4242
//! ```

0 commit comments

Comments
 (0)