From b835bc45cf07773ef1d191f6969e2db79f6e354f Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Mon, 16 May 2022 00:30:17 +0800 Subject: [PATCH 1/3] Update procedural-macros.md --- src/procedural-macros.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/procedural-macros.md b/src/procedural-macros.md index d983394ca..1090cedc2 100644 --- a/src/procedural-macros.md +++ b/src/procedural-macros.md @@ -52,8 +52,9 @@ type, unlike `Vec`, is cheap to clone. All tokens have an associated `Span`. A `Span` is an opaque value that cannot be modified but can be manufactured. `Span`s represent an extent of source -code within a program and are primarily used for error reporting. You can modify -the `Span` of any token. +code within a program and are primarily used for error reporting. While you +cannot modify a `Span` itself, you can always change the `Span` associated with +any token. ### Procedural macro hygiene From 9cdfa76fe29659f72c071f0cb08be37034f26b40 Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Mon, 16 May 2022 00:34:33 +0800 Subject: [PATCH 2/3] italics makes everything clearer --- src/procedural-macros.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/procedural-macros.md b/src/procedural-macros.md index 1090cedc2..b1824afaf 100644 --- a/src/procedural-macros.md +++ b/src/procedural-macros.md @@ -53,8 +53,8 @@ type, unlike `Vec`, is cheap to clone. All tokens have an associated `Span`. A `Span` is an opaque value that cannot be modified but can be manufactured. `Span`s represent an extent of source code within a program and are primarily used for error reporting. While you -cannot modify a `Span` itself, you can always change the `Span` associated with -any token. +cannot modify a `Span` itself, you can always change the `Span` *associated* +with any token, such as through getting a `Span` from another token. ### Procedural macro hygiene From bd51ca17847961a0ea65bfc2326d1b0df99bac5e Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Mon, 16 May 2022 22:11:12 +0800 Subject: [PATCH 3/3] Update procedural-macros.md --- src/procedural-macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/procedural-macros.md b/src/procedural-macros.md index b1824afaf..31f029a63 100644 --- a/src/procedural-macros.md +++ b/src/procedural-macros.md @@ -53,7 +53,7 @@ type, unlike `Vec`, is cheap to clone. All tokens have an associated `Span`. A `Span` is an opaque value that cannot be modified but can be manufactured. `Span`s represent an extent of source code within a program and are primarily used for error reporting. While you -cannot modify a `Span` itself, you can always change the `Span` *associated* +cannot modify a `Span` itself, you can always change the `Span` *associated* with any token, such as through getting a `Span` from another token. ### Procedural macro hygiene