Skip to content

Commit 2092351

Browse files
committed
more examples
1 parent b86dd41 commit 2092351

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ast/spans.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ fn union_spans<I: Iterator<Item = Span>>(iter: I) -> Span {
2525
.unwrap_or(Span::empty())
2626
}
2727

28-
/// A trait for AST nodes that have a source span for use in diagnostics.
28+
/// Trait for AST nodes that have a source location information.
2929
///
30-
/// Note: Source spans are likely not currently entirely accurate. They may
31-
/// 1. Be missing keywords or other tokens.
30+
/// # Note:
31+
///
32+
/// Source spans are not currently entirely accurate. They may
33+
/// 1. Be missing keywords or other tokens
3234
/// 2. Not have span information at all, in which case they return [`Span::empty()`].
3335
///
34-
/// See [this ticket] for more information.
36+
/// See [this ticket] for more information and status.
3537
///
3638
/// Note Some impl blocks may contain doc comments with information
3739
/// on which nodes are missing spans.

0 commit comments

Comments
 (0)