Fix doc comment

This commit is contained in:
Joscha 2022-01-08 04:15:22 +01:00
parent 1721f8c456
commit e0b6c839e2

View file

@ -143,8 +143,8 @@ impl Files {
/// - This function must be called before all other functions. /// - This function must be called before all other functions.
/// - This function must only be called once. /// - This function must only be called once.
/// - If this function fails, /// - If this function fails,
/// - it is safe to print the error with [`Files::eprint_diagnostic`] and /// - it is safe to print the error using the [`codespan_reporting::files::Files`] instance and
/// - no other function must be called. /// - no other functions may be called.
pub fn load(&mut self, path: &Path) -> Result<()> { pub fn load(&mut self, path: &Path) -> Result<()> {
if !self.files.is_empty() { if !self.files.is_empty() {
panic!("Files::load called multiple times"); panic!("Files::load called multiple times");