Skip to content

A mistake in the document guide.md #20255

Closed
@soulmachine

Description

@soulmachine

https://github.com/rust-lang/rust/blame/master/src/doc/guide.md#L2282 this line of code can not compile,

type `&'static str` does not implement any method in scope named `parse`

Should replace all parse() with from_str()

let input_num =  from_str::<uint>("5");

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