mirror of
https://github.com/rust-lang/book.git
synced 2026-12-03 21:01:30 -06:00
Merge pull request #4292 from rust-lang/ch-consist-ordering-use-statements
Ch. 02: Consistent ordering of `use` statements
This commit is contained in:
@@ -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!");
|
||||
|
||||
|
||||
+2
-1
@@ -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!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user