-File::create("something.txt") match {
+match File::create("something.txt") {
Ok(fp) => fp.write_all(b"Hello world"),
Err(err) => println!("Failure! {}", err),
}
@@ -401,8 +401,8 @@ File::create("something.txt") match {
-File::create("something.txt") match {
- Ok(fp) => fp.write_all(b"Hello world") match {
+match File::create("something.txt") {
+ Ok(fp) => match fp.write_all(b"Hello world") {
Ok(_) => (),
Err(err) => println!("Can't write! {}", err),
}
@@ -433,6 +433,28 @@ OK(())
localtime
+ +SimpleDateFormatter
+