Skip to content

[proc macros] confusing statement #1209

Closed
@evgeniy-terekhin

Description

@evgeniy-terekhin

link: https://doc.rust-lang.org/reference/procedural-macros.html#the-proc_macro-crate

When token span's are mentioned there is this phrase.

All tokens have an associated Span. A Span is an opaque value that cannot be modified but can be manufactured. Spans represent an extent of source code within a program and are primarily used for error reporting. You can modify the Span of any token.

To me it seems like a contradiction. I would have submit a fix straight away but I am not sure how to express it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-proc-macroArea: proc-macrosE-EasyWe believe this would not be difficult to actually fixLanguage CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions