mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2025-02-17 09:45:15 +00:00
remove some more missing details
This commit is contained in:
parent
df3760be0b
commit
37faf13dec
3 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
// ./src/std_misc/channels.md
|
// ./src/std_misc/channels.md
|
||||||
|
|
||||||
|
/*
|
||||||
use std::sync::mpsc::{Sender, Receiver};
|
use std::sync::mpsc::{Sender, Receiver};
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
@ -48,8 +48,9 @@ fn part0() {
|
||||||
// Show the order in which the messages were sent
|
// Show the order in which the messages were sent
|
||||||
println!("{:?}", ids);
|
println!("{:?}", ids);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
part0();
|
// part0();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// ./src/std_misc/threads/testcase_mapreduce.md
|
// ./src/std_misc/threads/testcase_mapreduce.md
|
||||||
|
|
||||||
|
/*
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
// This is the `main` thread
|
// This is the `main` thread
|
||||||
|
@ -92,10 +92,10 @@ fn part0() {
|
||||||
|
|
||||||
println!("Final sum result: {}", final_result);
|
println!("Final sum result: {}", final_result);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
part0();
|
// part0();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ fn part0() {
|
||||||
// End of the block
|
// End of the block
|
||||||
|
|
||||||
// Error! `short_lived_binding` doesn't exist in this scope
|
// Error! `short_lived_binding` doesn't exist in this scope
|
||||||
println!("outer short: {}", short_lived_binding);
|
// println!("outer short: {}", short_lived_binding);
|
||||||
// FIXME ^ Comment out this line
|
// FIXME ^ Comment out this line
|
||||||
|
|
||||||
println!("outer long: {}", long_lived_binding);
|
println!("outer long: {}", long_lived_binding);
|
||||||
|
|
Loading…
Reference in a new issue