mirror of
https://github.com/openharmony/third_party_rust_codespan.git
synced 2026-07-21 03:55:28 -04:00
Merge pull request #286 from Johann150/285-docs
add label rendering order to documentation
This commit is contained in:
@@ -128,6 +128,8 @@ pub struct Diagnostic<FileId> {
|
||||
/// sense on its own, without additional context provided by labels and notes.
|
||||
pub message: String,
|
||||
/// Source labels that describe the cause of the diagnostic.
|
||||
/// The order of the labels inside the vector does not have any meaning.
|
||||
/// The labels are always arranged in the order they appear in the source code.
|
||||
pub labels: Vec<Label<FileId>>,
|
||||
/// Notes that are associated with the primary cause of the diagnostic.
|
||||
/// These can include line breaks for improved formatting.
|
||||
|
||||
Reference in New Issue
Block a user