From 9ea45935728651e985d70649a476ad89d0bee15e Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 26 Aug 2020 23:21:44 +0800 Subject: [PATCH] Use [xxx()] rather than the [xxx] function Co-authored-by: Joshua Nelson --- library/std/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/error.rs b/library/std/src/error.rs index 9869ccec546..2c1aada8a4f 100644 --- a/library/std/src/error.rs +++ b/library/std/src/error.rs @@ -33,10 +33,10 @@ use crate::string; /// themselves through the [`Display`] and [`Debug`] traits, and may provide /// cause chain information: /// -/// The [`Error::source`] method is generally used when errors cross +/// [`Error::source()`] is generally used when errors cross /// "abstraction boundaries". If one module must report an error that is caused /// by an error from a lower-level module, it can allow accessing that error -/// via the [`Error::source`] method. This makes it possible for the high-level +/// via [`Error::source()`]. This makes it possible for the high-level /// module to provide its own errors while also revealing some of the /// implementation for debugging via [`Error::source`] chains. ///