Skip to content

Commit 0cd8d33

Browse files
authored
lesson 02: put slides in an iframe (#96)
1 parent 96ff115 commit 0cd8d33

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

content/lessons/02_ownership/index.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,32 @@ Even if you've never seen Rust code before, chances are you still heard the term
2424
- Why coding without allocations can avoid using a garbage collector?
2525
- Besides variable scope, does C++ help in any other way with memory management?
2626

27+
## Slides
28+
29+
### Don't panic
30+
31+
<iframe
32+
src="dont_panic/dont_panic.html"
33+
title="Don't panic slides"
34+
loading="lazy"
35+
style="width: 100%; aspect-ratio: 16 / 9; border: none;"
36+
></iframe>
37+
38+
- [Open the slides in a new tab (HTML)](dont_panic/dont_panic.html)
39+
- [Download the slides as PDF](dont_panic/dont_panic.pdf)
40+
41+
### String formatting
42+
43+
<iframe
44+
src="string_formatting/string_formatting.html"
45+
title="String formatting slides"
46+
loading="lazy"
47+
style="width: 100%; aspect-ratio: 16 / 9; border: none;"
48+
></iframe>
49+
50+
- [Open the slides in a new tab (HTML)](string_formatting/string_formatting.html)
51+
- [Download the slides as PDF](string_formatting/string_formatting.pdf)
52+
2753
## Start with the basics - ownership
2854

2955
And then we have Rust. Rust is a systems programming language and in many ways it's akin to C++ - it's basically low-level with many high-level additions. But unlike C++, it doesn't exactly fall into either of the categories described above, though it's way closer to the second one. It performs no additional management at runtime, but instead imposes a set of rules on the code, making it easier to reason about and thus check for its safety and correctness at compile time - these rules make up Rust's **ownership model**.

0 commit comments

Comments
 (0)