diff --git a/clap_derive/src/item.rs b/clap_derive/src/item.rs index e48b200f704..ab32918e5f4 100644 --- a/clap_derive/src/item.rs +++ b/clap_derive/src/item.rs @@ -561,7 +561,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let val = if let Some(expr) = &attr.value { @@ -611,7 +611,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let expr = attr.value_or_abort()?; @@ -622,7 +622,7 @@ impl Item { "#[arg(default_values_t)] can be used only on Vec types\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") } let inner_type = inner_type(ty); @@ -689,7 +689,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let val = if let Some(expr) = &attr.value { @@ -739,7 +739,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let expr = attr.value_or_abort()?; @@ -750,7 +750,7 @@ impl Item { "#[arg(default_values_os_t)] can be used only on Vec types\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") } let inner_type = inner_type(ty); diff --git a/tests/derive_ui/default_values_t_invalid.stderr b/tests/derive_ui/default_values_t_invalid.stderr index 78a336960fd..0a6df92984f 100644 --- a/tests/derive_ui/default_values_t_invalid.stderr +++ b/tests/derive_ui/default_values_t_invalid.stderr @@ -1,6 +1,6 @@ error: #[arg(default_values_t)] can be used only on Vec types - = note: see https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes + = note: see https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes --> tests/derive_ui/default_values_t_invalid.rs:6:11 |