780afddc11
Add example to turn on an LED.
2023-03-20 14:26:57 +00:00
9068b63e76
Actually use panic_halt in example.
2023-03-20 14:26:57 +00:00
d84c93010a
no_std examples won't build in mdbook test.
2023-03-20 14:26:57 +00:00
8e009b9674
Remove reference to panic-abort.
...
It doesn't build with current rustc.
2023-03-20 14:26:57 +00:00
0a2263451d
Add alloc example.
2023-03-20 14:26:57 +00:00
2981d3856f
Mention panic-abort and panic-halt crates.
2023-03-20 14:26:57 +00:00
f71a86d942
Add minimal no_std example.
2023-03-20 14:26:57 +00:00
27820629e2
Rename section to bare metal.
2023-03-20 14:26:57 +00:00
51ccf44f52
Add initial outline for bare-metal Rust day.
2023-03-20 14:26:57 +00:00
daf25d094b
Make Miri happy ( #486 )
...
I think this is a better solution than #308 . It fixes the Miri error, and mostly keeps the original intent of demonstrating how to use raw pointers.
2023-03-15 23:18:12 +00:00
7a22d5567a
Don't allocate in success case ( #506 )
...
`format!` was being called (and allocating a string) even in the success case.
2023-03-15 09:06:35 +01:00
9ee562c267
Remove unnecessary Mutex::lock
from shared state example ( #499 )
...
It's not necessary to explicitly take the lock to print it.
2023-03-12 10:48:52 +01:00
59d3d7f625
Indent code in speaker notes ( #476 )
...
* Indent code in speaker notes
#475
* Update stack.md
* Update destructuring-arrays.md
* Update hashmap.md
* Update traits.md
2023-03-11 14:12:32 -08:00
368f3ba302
The code block at https://google.github.io/comprehensive-rust/testing/unit-tests.html probably should not be runnable ( #498 )
2023-03-11 10:12:37 +01:00
bfed596d28
Generalize the day-4 afternoon ( #487 )
...
* Generalize the day-4 afternoon
This is in preparation for adding more options for this portion of the
course, and reflects an existing practice of substituting other
materials for this last half-day.
* address review comments
2023-03-10 09:07:36 -05:00
ff66258c50
Fix typo in borrowing.md in the Speaker's Notes ( #490 )
...
the -> they
2023-03-09 14:13:04 +00:00
3242afae09
Create default.md ( #370 )
...
* Create default.md
* Update SUMMARY.md
* Update SUMMARY.md
* Update default.md
* Update default.md
* Update default.md
2023-03-07 17:11:43 +01:00
64340562ea
Add badges to README and welcome page ( #481 )
2023-03-07 12:45:00 +00:00
31500974e4
Add note about requesting a room with tables ( #479 )
...
* Add note about requesting a room with tables
The course is built on the idea of using live-coding as much as possible. This means that it's important that there are desks in the classrooms — a traditional auditorium setup does not work well.
2023-03-06 15:23:10 +01:00
05eb17a6fe
Fix typo in string.md ( #473 )
2023-03-04 17:22:04 +01:00
a78d58ba56
Add note about hygienic macros ( #472 )
...
* Add note about hygienic macros
* Fix typo.
* Add link about macro hygiene.
2023-03-03 12:19:52 +00:00
2de8d7cdbb
Simplify running the course slightly ( #463 )
...
Thanks to many contributors, we now have lots of speaker notes.
2023-03-02 09:13:49 +01:00
c22b35e426
Remove silenced warnings in book-library exercise ( #388 )
...
* Update book-library.md
* Update book-library.rs
* Apply suggestions from code review
Expanding the variable makes it ever-so-slightly easier to read.
---------
Co-authored-by: Martin Geisler <mgeisler@google.com >
2023-02-28 17:53:02 -08:00
1feb94e02a
Take out unnecessary code from enum size slide ( #309 )
...
The slide is way too large to comfortable use in a classroom. Instead
of printing six lines of output, the instructor should carefully walk
through the different examples. That way we can take the course
participants with us through the explanations instead of simply
showing them the end result.
2023-02-27 17:42:46 +01:00
b1b78a9672
Fix typo in string.md ( #456 )
...
* Fix typo in string.md
* Update src/std/string.md
---------
Co-authored-by: Martin Geisler <martin@geisler.net >
2023-02-27 13:37:08 +00:00
0562771ce0
Update variant-payloads.md ( #459 )
...
Fix typo
2023-02-27 13:19:32 +00:00
e73b163d77
Add to speaker notes rc.md ( #366 )
...
* Update rc.md
* Fix wording and formatting
* Update rc.md
---------
Co-authored-by: Andrew Walbran <qwandor@google.com >
2023-02-27 02:05:01 +00:00
4690f19e8c
Fix typo in drop.md ( #457 )
2023-02-26 22:04:39 +00:00
db7a6044b4
Remove extraneous trailing parenthesis ( #453 )
...
The text currently looks like this:
> See the Rust Reference).
And should look like this:
> See the Rust Reference.
Closer #452
2023-02-24 16:27:24 +01:00
60aa747aca
Add Speaker notes string.md ( #368 )
...
* Update string.md
* Update src/std/string.md
Co-authored-by: Martin Geisler <mgeisler@google.com >
* Update src/std/string.md
Co-authored-by: Martin Geisler <mgeisler@google.com >
* Update string.md
---------
Co-authored-by: Martin Geisler <mgeisler@google.com >
2023-02-22 18:01:07 +00:00
e616f66593
Clarify box ( #448 )
2023-02-22 16:08:50 +01:00
bb3b17b6bd
Additional speaker notes for variant payloads ( #200 )
...
* Additional speaker notes for variant payloads
* Update variant-payloads.md
* Update variant-payloads.md
2023-02-22 15:00:45 +00:00
3f6bd6aa14
Speaker Notes for Field Shorthand ( #198 )
...
* Speaker Notes for Field Shorthand
* Update field-shorthand.md
2023-02-22 14:55:29 +00:00
8ee637d886
Lecture notes for Destructing Arrays ( #266 )
...
* Lecture notes for Destructing Arrays
* Update destructuring-arrays.md
2023-02-22 13:41:12 +01:00
9bb586689a
Minor grammar fixes to type-inference.md ( #437 )
2023-02-19 09:27:56 +01:00
e6d6ee28fe
Update move-semantics.md ( #438 )
2023-02-19 09:27:41 +01:00
aef4c3ca72
Update example.md ( #441 )
2023-02-19 04:53:11 +00:00
9510e80165
Update receiver.md ( #440 )
2023-02-19 04:52:41 +00:00
92d00f2fd4
Fix typo: patten -> pattern ( #430 )
2023-02-17 18:34:35 +09:00
eb57ba9e51
Publish Korean translation ( #428 )
...
* Publish Korean translation
* 한국어 -> 한국어 (Korean)
* Add translator names for the Korean translation
2023-02-17 17:58:33 +09:00
9a4cda6f35
Fix references within options returned from Args ( #427 )
...
This fixes #426
2023-02-16 21:54:18 +00:00
bc2dbd0fd3
Add a page which mentions the translations ( #424 )
...
This is to help people discover the language picker.
2023-02-16 13:21:45 +01:00
29b6b90bfc
Add example where breaking UTF-8 encoding leads to a crash. ( #387 )
2023-02-16 03:19:44 +00:00
fe21b773e7
Day2: Afternoon - speaker note details and minor cosmetic changes. ( #408 )
...
* A few speaker notes in Day2: Afternoon and minor cosmetic changes.
* Do not test filesystem example code block.
2023-02-16 03:19:25 +00:00
f16b41f012
Further simplify Box
diagrams ( #409 )
...
* Further simplify `Box` diagrams
I think we can improve the drawing by simplifying them and making them
more symbolic. Followup to #374 .
* Apply suggestions from code review
2023-02-15 18:10:50 +00:00
8e4bf245d3
Add Too Many Lists book to other resources ( #410 )
...
As suggested by @mgeisler in https://news.ycombinator.com/item?id=34092980 . Wording taken from https://github.com/rust-unofficial/awesome-rust#resources .
2023-02-14 21:25:06 +00:00
2436560e40
Let user know they can modify the tests, but do not need to. ( #401 )
2023-02-14 12:28:22 -08:00
c06709838f
Update visibility.md ( #403 )
2023-02-14 12:24:32 -08:00
cd79cc41a3
Remove code markers for compiler message ( #402 )
...
Follow up on comment in merged PR #360 , working on issue #274
2023-02-14 20:22:49 +00:00
8dd5a78626
Clarify the Box layout diagrams. ( #374 )
2023-02-14 20:03:46 +01:00