mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-11-24 00:41:00 +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
|
||||
|
||||
|
||||
/*
|
||||
use std::sync::mpsc::{Sender, Receiver};
|
||||
use std::sync::mpsc;
|
||||
use std::thread;
|
||||
|
@ -48,8 +48,9 @@ fn part0() {
|
|||
// Show the order in which the messages were sent
|
||||
println!("{:?}", ids);
|
||||
}
|
||||
*/
|
||||
|
||||
pub fn main() {
|
||||
part0();
|
||||
// part0();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// ./src/std_misc/threads/testcase_mapreduce.md
|
||||
|
||||
|
||||
/*
|
||||
use std::thread;
|
||||
|
||||
// This is the `main` thread
|
||||
|
@ -92,10 +92,10 @@ fn part0() {
|
|||
|
||||
println!("Final sum result: {}", final_result);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
pub fn main() {
|
||||
part0();
|
||||
// part0();
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ fn part0() {
|
|||
// End of the block
|
||||
|
||||
// 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
|
||||
|
||||
println!("outer long: {}", long_lived_binding);
|
||||
|
|
Loading…
Reference in a new issue