From e0b6c839e2d18e94ee5e6922dc23639387a10db8 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 8 Jan 2022 04:15:22 +0100 Subject: [PATCH] Fix doc comment --- src/files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.rs b/src/files.rs index 98b0f94..e1d437a 100644 --- a/src/files.rs +++ b/src/files.rs @@ -143,8 +143,8 @@ impl Files { /// - This function must be called before all other functions. /// - This function must only be called once. /// - If this function fails, - /// - it is safe to print the error with [`Files::eprint_diagnostic`] and - /// - no other function must be called. + /// - it is safe to print the error using the [`codespan_reporting::files::Files`] instance and + /// - no other functions may be called. pub fn load(&mut self, path: &Path) -> Result<()> { if !self.files.is_empty() { panic!("Files::load called multiple times");