From 20923515bb5096c6a8277038b491663743dae65f Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 25 Nov 2024 07:20:30 -0500 Subject: [PATCH] more examples --- src/ast/spans.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ast/spans.rs b/src/ast/spans.rs index 8d68a6e2a..6340e8b2f 100644 --- a/src/ast/spans.rs +++ b/src/ast/spans.rs @@ -25,13 +25,15 @@ fn union_spans>(iter: I) -> Span { .unwrap_or(Span::empty()) } -/// A trait for AST nodes that have a source span for use in diagnostics. +/// Trait for AST nodes that have a source location information. /// -/// Note: Source spans are likely not currently entirely accurate. They may -/// 1. Be missing keywords or other tokens. +/// # Note: +/// +/// Source spans are not currently entirely accurate. They may +/// 1. Be missing keywords or other tokens /// 2. Not have span information at all, in which case they return [`Span::empty()`]. /// -/// See [this ticket] for more information. +/// See [this ticket] for more information and status. /// /// Note Some impl blocks may contain doc comments with information /// on which nodes are missing spans.