Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit acca102

Browse files
fvilersseanmonstar
authored andcommitted
Update hello-world.md
Use eprintln macro to display errors instead of println.
1 parent a87c5dc commit acca102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎_stable/server/hello-world.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
115115
.serve_connection(io, service_fn(hello))
116116
.await
117117
{
118-
println!("Error serving connection: {:?}", err);
118+
eprintln!("Error serving connection: {:?}", err);
119119
}
120120
});
121121
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /