edit wrong file name & suggest editing drive document (#2667)

More important, the link in (Toolchain architecture drive file => diagnostic registry) should be updated

Also fixes an "errer" typo.
This commit is contained in:
Saeed Ahmed
2023-03-14 10:01:02 -07:00
committed by GitHub
parent e613ad5323
commit bcbeb7af08
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ CARBON_DEFINE_RAW_ENUM_CLASS(DiagnosticKind, uint16_t) {
};
// An enumeration of all diagnostics provided by the toolchain. Diagnostics must
// be added to diagnostic_registry.def, and defined locally to where they're
// be added to diagnostic_kind.def, and defined locally to where they're
// used using the `DIAGNOSTIC` macro in diagnostic_emitter.h.
//
// Diagnostic definitions are decentralized because placing all diagnostic
+1 -1
View File
@@ -96,7 +96,7 @@ auto SourceBuffer::CreateFromFile(llvm::StringRef filename)
errno = 0;
closer.release();
if (close(file_descriptor) == -1) {
// Try to unmap the text. No errer handling as this is just best-effort
// Try to unmap the text. No error handling as this is just best-effort
// cleanup.
munmap(mapped_text, size);
return ErrnoToError(errno);