We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Type::method
Type.method
1 parent 85ef017 commit 9027625Copy full SHA for 9027625
book/src/development/macro_expansions.md
@@ -37,7 +37,7 @@ before emitting suggestions to the end user to avoid false positives.
37
38
Several functions are available for working with macros.
39
40
-### The `Span.from_expansion` method
+### The `Span::from_expansion` method
41
42
We could utilize a `span`'s [`from_expansion`] method, which
43
detects if the `span` is from a macro expansion / desugaring.
@@ -50,7 +50,7 @@ if expr.span.from_expansion() {
50
}
51
```
52
53
-### `Span.ctxt` method
+### `Span::ctxt` method
54
55
The `span`'s context, given by the method [`ctxt`] and returning [SyntaxContext],
56
represents if the span is from a macro expansion and, if it is, which
0 commit comments