@@ 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.