From 777e4dc41b0a47bf140da4c60dabe932805a424d Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 23 May 2023 08:38:02 -0500 Subject: [PATCH] docs(derive): Clarify `name` is package name, not crate name Fixes #4934 --- src/_derive/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_derive/mod.rs b/src/_derive/mod.rs index 2e4a4902d5c..2bda8d1b543 100644 --- a/src/_derive/mod.rs +++ b/src/_derive/mod.rs @@ -141,7 +141,7 @@ //! //! **Magic attributes:** //! - `name = `: [`Command::name`][crate::Command::name] -//! - When not present: [crate `name`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field) (if on [`Parser`][crate::Parser] container), variant name (if on [`Subcommand`][crate::Subcommand] variant) +//! - When not present: [package `name`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field) (if on [`Parser`][crate::Parser] container), variant name (if on [`Subcommand`][crate::Subcommand] variant) //! - `version [= ]`: [`Command::version`][crate::Command::version] //! - When not present: no version set //! - Without ``: defaults to [crate `version`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-version-field)