tokio-rs / tokio-minihttp

Protocol implementation experimentations
Apache License 2.0
448 stars 50 forks source link

add a comment to HelloWorld example #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

I was a bit surprised to discover how HelloWorld was passed to http::serve which expects NewService trait.

Add a comment explaining how HelloWorld can be used where NewService is expected. The comment can be improved though.

alexcrichton commented 8 years ago

Thanks and sorry for the delay!