Better example

This commit is contained in:
Mohd Tarmizi 2015-08-06 23:09:17 +08:00
parent bcd8d387f1
commit 67328baab7
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@ use std::io::Write;
fn main() { fn main() {
fastcgi::run(|mut req| { fastcgi::run(|mut req| {
write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!") write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
.unwrap(); .unwrap_or(());
}); });
} }

View File

@ -34,7 +34,7 @@
//! fn main() { //! fn main() {
//! fastcgi::run(|mut req| { //! fastcgi::run(|mut req| {
//! write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!") //! write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
//! .unwrap(); //! .unwrap_or(());
//! }); //! });
//! } //! }