16096b812a1b8d728854d8d8dff87377dd601b8f — Manuel Groß 1 year, 3 months ago 11d7b2b
Add notes from chapter 12
1 files changed, 1 insertions(+), 0 deletions(-)

M notes.md
M notes.md => notes.md +1 -0
@@ 131,3 131,4 @@ These are things from the book I want to have in a document to quickly find agai
# 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.
- Lifetimes are a way to tell the compiler what input of a function the return value is connected to. If it’s e.g. a reference to something contained in an input argument, it needs to be valid for the same scope. Otherwise the reference would become invalid.