From e2f85e1c8c9af3309fd51ef30d12103ae5597174 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Thu, 16 Jan 2025 14:46:41 -0500 Subject: [PATCH] fix: wrong concat and typos --- src/cargo/util/toml/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index bc80097b705..6ab5932d1ad 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -869,7 +869,7 @@ fn inheritable_from_path( macro_rules! package_field_getter { ( $(($key:literal, $field:ident -> $ret:ty),)* ) => ( $( - #[doc = concat!("Gets the field `workspace.package", $key, "`.")] + #[doc = concat!("Gets the field `workspace.package.", $key, "`.")] fn $field(&self) -> CargoResult<$ret> { let Some(val) = self.package.as_ref().and_then(|p| p.$field.as_ref()) else { bail!("`workspace.package.{}` was not defined", $key); @@ -940,7 +940,7 @@ impl InheritableFields { Ok(dep) } - /// Gets the field `workspace.lint`. + /// Gets the field `workspace.lints`. pub fn lints(&self) -> CargoResult { let Some(val) = &self.lints else { bail!("`workspace.lints` was not defined");