Skip to content

Commit 9027625

Browse files
committed
book: use Type::method instead of Type.method to refer to methods
1 parent 85ef017 commit 9027625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/development/macro_expansions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ before emitting suggestions to the end user to avoid false positives.
3737

3838
Several functions are available for working with macros.
3939

40-
### The `Span.from_expansion` method
40+
### The `Span::from_expansion` method
4141

4242
We could utilize a `span`'s [`from_expansion`] method, which
4343
detects if the `span` is from a macro expansion / desugaring.
@@ -50,7 +50,7 @@ if expr.span.from_expansion() {
5050
}
5151
```
5252

53-
### `Span.ctxt` method
53+
### `Span::ctxt` method
5454

5555
The `span`'s context, given by the method [`ctxt`] and returning [SyntaxContext],
5656
represents if the span is from a macro expansion and, if it is, which

0 commit comments

Comments
 (0)