Skip to content

Quiz for Chapter 20.1 uses syntax no longer used in the book #373

@timm0e

Description

@timm0e

URL to the section(s) of the book with this problem:
https://rust-book.cs.brown.edu/ch20-01-unsafe-rust.html

Description of the problem:
The book content uses the the newer &raw syntax to create pointers. The upstream change was done in 2b1ddf4 and merged via #300.
The quiz, however, still uses &v[0] as *const i32 in its example program, which causes confusion since this syntax was never introduced to the reader.

Suggested fix:

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