Merge pull request #4292 from rust-lang/ch-consist-ordering-use-statements

Ch. 02: Consistent ordering of `use` statements
This commit is contained in:
Chris Krycho
2025-03-21 08:07:04 -06:00
committed by GitHub
7 changed files with 13 additions and 6 deletions
@@ -1,5 +1,6 @@
// ANCHOR: all
use std::io;
// ANCHOR: ch07-04
use rand::Rng;
@@ -1,8 +1,9 @@
// ANCHOR: here
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
// --snip--
// ANCHOR_END: here
@@ -1,7 +1,8 @@
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
@@ -1,7 +1,8 @@
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
@@ -1,7 +1,8 @@
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
@@ -1,7 +1,8 @@
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
@@ -1,7 +1,8 @@
use rand::Rng;
use std::cmp::Ordering;
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");