Skip to content

Include details about reading extern static mut in the FFI tutorial. #9980

Closed
@nejucomo

Description

@nejucomo

The FFI tutorial section 8 Accessing foreign globals describes writing an extern static mut, but it would be helpful to mention that reading is also unsafe.

The code example has two writes and no reads, so perhaps if the example is also updated with a read it may save some readers some trouble.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions