Skip to content

Fixed the examples in stdlib/rand.rs #7693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2013
Merged

Fixed the examples in stdlib/rand.rs #7693

merged 1 commit into from
Jul 11, 2013

Conversation

tweber12
Copy link
Contributor

All of the examples were still using core:: instead of std:: and needed a use std::rand; at the top to compile
Most of the examples had
rng = rand::rng();
instead of
let mut rng = rand::rng();

The examples were still using `core::` instead of `std::`
All of the examples needed a `use std::rand;` at the top to compile
Most of the examples had
    `rng = rand::rng();`
instead of
    `let mut rng = rand::rng();`
bors added a commit that referenced this pull request Jul 11, 2013
All of the examples were still using `core::` instead of `std::` and  needed a `use std::rand;` at the top to compile
Most of the examples had
    `rng = rand::rng();`
instead of
    `let mut rng = rand::rng();`
@bors bors closed this Jul 11, 2013
@bors bors merged commit 3cb3d75 into rust-lang:master Jul 11, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 28, 2021
Expand box_vec lint to box_collection

fixed rust-lang#7451

changelog: Expand `box_vec` into [`box_collection`], and have it error on all sorts of boxed collections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants