0330a7b576c3675c4944fd6d604bc7ef8eb1d7db — Manuel Groß 2 years ago fb7ec1e
Add notes for minigrep
1 files changed, 4 insertions(+), 0 deletions(-)

M notes.md
M notes.md => notes.md +4 -0
@@ 127,3 127,7 @@ These are things from the book I want to have in a document to quickly find agai
- The `assert!` macro evaluates a boolean value and panics if it’s `false`.
- All the `assert!` macros also take optional parameters to print custom error messages.
- Adding `#[should_panic]` after ´#[test]` can be used to check if the error handling works correct.

# Chapter 12

- Per convention, programs should be split into a `main.rs` and a `lib.rs`, where the latter contains all the logic, and the main handles running the program.