Skip to content

Commit 9ea4593

Browse files
pickfireJoshua Nelson
andauthored
Use [xxx()] rather than the [xxx] function
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 16d8d4b commit 9ea4593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ use crate::string;
3333
/// themselves through the [`Display`] and [`Debug`] traits, and may provide
3434
/// cause chain information:
3535
///
36-
/// The [`Error::source`] method is generally used when errors cross
36+
/// [`Error::source()`] is generally used when errors cross
3737
/// "abstraction boundaries". If one module must report an error that is caused
3838
/// by an error from a lower-level module, it can allow accessing that error
39-
/// via the [`Error::source`] method. This makes it possible for the high-level
39+
/// via [`Error::source()`]. This makes it possible for the high-level
4040
/// module to provide its own errors while also revealing some of the
4141
/// implementation for debugging via [`Error::source`] chains.
4242
///

0 commit comments

Comments
 (0)