tried out obsidian, started ch 6.2

This commit is contained in:
2025-01-08 11:53:20 -07:00
parent fdbc82191c
commit 30047d24ea
16 changed files with 1160 additions and 776 deletions

11
Constants.md Normal file
View File

@ -0,0 +1,11 @@
# Constants
- Can be declared anywhere,
- The convention to use all caps in a constant's name
- Needs const keyword
- Not always evaluated at compile time (there are rules for this but too complex to know everything)
- Variables can only be assigned once (needs mut to assign more than once (need to be same type))
```rust
const SECONDS_PER_HOUR: i32 = 60 * 60;
```