diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 17e58eaac8846..444d4fee92d71 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -1108,7 +1108,7 @@ pub fn write(output: &mut dyn Write, args: Arguments<'_>) -> Result { if let Some(s) = args.as_str() { output.write_str(s) } else { write_internal(output, args) } } -/// Actual implementation of the [`write`], but without the simple string optimization. +/// Actual implementation of the [`write()`], but without the simple string optimization. fn write_internal(output: &mut dyn Write, args: Arguments<'_>) -> Result { let mut formatter = Formatter::new(output); let mut idx = 0;