Skip to content

Chapter 2: Avoiding confusion with rand version #4508

@luskbyte

Description

@luskbyte

Hello all! Thanks for this great work. I'm learning rust and this book is making things more fun and easier.

While reading chapter 2, in the guessing game example, we hace a section Updating a Crate to Get a New Version. In this section the version of rand is set for 0.9.0. The problem is that bellow this section, in the section Generating a Random Number, we'll build the guessing game code with rand 0.8.6 without specify this downgrade. The beginner reader will have problems, because in the updated 0.9.0 version the method thread_rng is deprecated.

Sugested 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