Skip to content

Commit

Permalink
[Fix] Book : add empty main so mdbook doesn't wrap function in main (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-russo authored Jul 22, 2023
1 parent 74ed7bb commit c7f4dce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/proptest/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Let's say we want to make a function that parses dates of the form
triple of integers is fine. So let's bang something out real quick.

```rust,no_run
fn main() {}
fn parse_date(s: &str) -> Option<(u32, u32, u32)> {
if 10 != s.len() { return None; }
if "-" != &s[4..5] || "-" != &s[7..8] { return None; }
Expand Down

0 comments on commit c7f4dce

Please sign in to comment.