Skip to content

Commit

Permalink
fix typo in doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 8, 2015
1 parent fa7f555 commit d18a374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ impl<T> Status<T> {
///
/// # Example
///
/// ```
/// ```no_run
/// let buf = b"GET /404 HTTP/1.1\r\nHost:";
/// let mut headers = [httparse::EMPTY_HEADER; 16];
/// let mut req = httparse::Request::new(&mut headers);
/// let res = req.parse(buf).unwrap();
/// if res.is_partial() {
/// match req.path {
/// Some(ref path => {
/// Some(ref path) => {
/// // check router for path.
/// // /404 doesn't exist? we could stop parsing
/// },
Expand Down Expand Up @@ -286,7 +286,7 @@ pub struct Header<'a> {
/// # Example
///
/// ```
/// let headers = [httparse::EMTPY_HEADER; 64];
/// let headers = [httparse::EMPTY_HEADER; 64];
/// ```
pub const EMPTY_HEADER: Header<'static> = Header { name: "", value: b"" };

Expand Down

0 comments on commit d18a374

Please sign in to comment.