Explorar o código

Update links to the DiagnosticConsumers (#4580)

The ConsoleDiagnosticConsumer and ErrorTrackingDiagnosticConsumer have
moved to new places.
Dana Jansens hai 1 ano
pai
achega
e09bf82d36
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      toolchain/docs/diagnostics.md

+ 3 - 3
toolchain/docs/diagnostics.md

@@ -41,10 +41,10 @@ DiagnosticConsumer.
 DiagnosticConsumers handle output of diagnostic messages after they've been
 formatted by an Emitter. Important consumers are:
 
--   [ConsoleDiagnosticConsumer](/toolchain/diagnostics/diagnostic_emitter.h):
+-   [ConsoleDiagnosticConsumer](/toolchain/diagnostics/diagnostic_consumer.cpp):
     prints diagnostics to console.
 
--   [ErrorTrackingDiagnosticConsumer](/toolchain/diagnostics/diagnostic_emitter.h):
+-   [ErrorTrackingDiagnosticConsumer](/toolchain/diagnostics/diagnostic_consumer.h):
     counts the number of errors produced, particularly so that it can be
     determined whether any errors were encountered.
 
@@ -79,7 +79,7 @@ Here, `CARBON_DIAGNOSTIC` defines a static instance of a diagnostic named
 `InvalidCode` with the associated severity (`Error` or `Warning`).
 
 The `Emit` call produces a single instance of the diagnostic. When emitted,
-`"Code is invalid"` will be the message used. The type of `location` depends on
+`"code is invalid"` will be the message used. The type of `location` depends on
 the `DiagnosticEmitter`.
 
 A diagnostic with an argument looks like: