Skip to content

Commit 7587c17

Browse files
authored
Merge pull request #868 from http-rs/fix-hello-world-example
Fix the "hello world" example
2 parents e2d1f88 + e975bc2 commit 7587c17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ use tide::prelude::*;
7070
#[derive(Debug, Deserialize)]
7171
struct Animal {
7272
name: String,
73-
legs: u8,
73+
legs: u16,
7474
}
7575

7676
#[async_std::main]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! #[derive(Debug, Deserialize)]
2828
//! struct Animal {
2929
//! name: String,
30-
//! legs: u8,
30+
//! legs: u16,
3131
//! }
3232
//!
3333
//! #[async_std::main]

0 commit comments

Comments
 (0)