Skip to content

Commit 5e614ae

Browse files
authored
Merge pull request #1219 from merelymyself/patch-1
Makes explanation for Spans in "Procedural Macros" clearer
2 parents d9c533f + bd51ca1 commit 5e614ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/procedural-macros.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ type, unlike `Vec<TokenTree>`, is cheap to clone.
5252
5353
All tokens have an associated `Span`. A `Span` is an opaque value that cannot
5454
be modified but can be manufactured. `Span`s represent an extent of source
55-
code within a program and are primarily used for error reporting. You can modify
56-
the `Span` of any token.
55+
code within a program and are primarily used for error reporting. While you
56+
cannot modify a `Span` itself, you can always change the `Span` *associated*
57+
with any token, such as through getting a `Span` from another token.
5758
5859
### Procedural macro hygiene
5960

0 commit comments

Comments
 (0)