seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
573 stars 113 forks source link

Comment for Request.version doesn't make sense #65

Closed alex closed 2 years ago

alex commented 4 years ago

https://github.com/seanmonstar/httparse/blob/6f696f5d027f35e11a70181c839b574e20335a74/src/lib.rs#L284-L285

It suggests version could contain HTTP/1.1, but version is a u8. I believe it should say something like "For HTTP/1.1 this will contain 1".