diff --git a/src/bin/std_misc_channels.rs b/src/bin/std_misc_channels.rs index 3ed5d1c..f6061e1 100644 --- a/src/bin/std_misc_channels.rs +++ b/src/bin/std_misc_channels.rs @@ -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(); } diff --git a/src/bin/std_misc_threads_testcase_mapreduce.rs b/src/bin/std_misc_threads_testcase_mapreduce.rs index ee09a14..aaf57b9 100644 --- a/src/bin/std_misc_threads_testcase_mapreduce.rs +++ b/src/bin/std_misc_threads_testcase_mapreduce.rs @@ -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(); } diff --git a/src/bin/variable_bindings_scope.rs b/src/bin/variable_bindings_scope.rs index 5a41b6f..4a9bab1 100644 --- a/src/bin/variable_bindings_scope.rs +++ b/src/bin/variable_bindings_scope.rs @@ -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);