Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 19th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. use std::sync::Mutex;
  2.  
  3. fn main() {
  4.     let my_locked_value = Mutex::new(String::new());
  5.     let mut value = my_locked_value.lock().unwrap();
  6.     value.push_str("hello world");
  7.     println!("times 6: {}", value);
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top