Skip to content

Incorrect example at using Path #10241

Closed
Closed
@tredoe

Description

@tredoe

Use of path::Path incorrect in http://static.rust-lang.org/doc/master/std/rt/io/file/fn.open.html

Instead of let p = &Path("/some/file/path.txt");, should be let p = &Path::new("/some/file/path.txt");

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