1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-12 13:25:23 +02:00
Commit Graph

201 Commits

Author SHA1 Message Date
Martin Geisler
6b874844ca
Merge pull request #144 from fbornhofen/speaker-notes-rvo
Add speaker notes about RVO in borrowing.md
2023-01-10 17:45:39 +01:00
Martin Geisler
9448ae3e19
Merge pull request #146 from fbornhofen/speaker-notes-variant-payloads
Add speaker notes for variant-payloads.md
2023-01-10 17:44:49 +01:00
Martin Geisler
09048753ef
Merge pull request #147 from fbornhofen/speaker-notes-enum-sizes
Expand enum sizes example and add speaker notes
2023-01-10 17:44:07 +01:00
Fabian Bornhofen
8d2fb11adc Expand enum sizes example and add speaker notes 2023-01-10 17:36:16 +01:00
Fabian Bornhofen
c91cc629d5 Add speaker notes for variant-payloads.md 2023-01-10 16:46:57 +01:00
Martin Geisler
a5d31d759f
Merge pull request #145 from fbornhofen/speaker-notes-shared-unique-borrows
Add speaker notes for shared and unique borrows
2023-01-10 16:14:54 +01:00
Fabian Bornhofen
91b8d33a99 Add speaker notes for shared and unique borrows 2023-01-10 15:51:56 +01:00
Fabian Bornhofen
d157b54fd4 Add speaker notes about RVO in borrowing.md 2023-01-10 15:04:17 +01:00
Martin Geisler
e29c3bfb99
Merge pull request #123 from ilyagr/username_or_error
Error handling: clarify printing of Result
2023-01-10 10:21:43 +01:00
Martin Geisler
9746af91fa
Merge pull request #140 from brandonpollack23/variables
Added some speaker notes to variables.md
2023-01-10 09:31:22 +01:00
Martin Geisler
e43dec24fd
Tighten language 2023-01-10 09:29:57 +01:00
Brandon Pollack
d15a653ed8 Added some speaker notes to variables.md 2023-01-10 13:27:39 +09:00
Martin Geisler
bee9cdab92
Merge pull request #136 from fbornhofen/speaker-notes-variables
Add speaker notes for scopes-shadowing.md
2023-01-09 18:44:29 +01:00
Martin Geisler
c5824aece0
Merge pull request #134 from fbornhofen/speaker-notes-fbornhofen
Speaker notes for lifetimes-function-calls.md
2023-01-09 18:43:56 +01:00
Fabian Bornhofen
2ec7bdf15d Ignore code block that deliberately contains an error 2023-01-09 17:36:58 +01:00
Fabian Bornhofen
3a4d5d4c26 Add complete code block for lifetimes example 2023-01-09 17:32:37 +01:00
Fabian Bornhofen
77d3ac01e7 Add speaker notes for scopes-shadowing.md 2023-01-09 17:21:54 +01:00
Martin Geisler
c2462b4af0
Merge pull request #135 from fbornhofen/speaker-notes-fbornhofen-references
Add bullet point about mutable references
2023-01-09 17:20:28 +01:00
Fabian Bornhofen
ba09385c4a Add bullet point about mutable references 2023-01-09 16:54:14 +01:00
Fabian Bornhofen
512dedf729 Make instructions in lifetimes-function-calls.md more precise 2023-01-09 16:31:09 +01:00
Fabian Bornhofen
597c875442 Add speaker notes to lifetimes-function-calls.md 2023-01-09 16:27:10 +01:00
Martin Geisler
3ff2d5f43a
Merge pull request #118 from google/exercise-code-snippets
Explain why exercises are not editable
2023-01-09 14:42:54 +01:00
Martin Geisler
affb2526fe Explain why exercises are not editable
From a discussion in #23.
2023-01-09 14:41:48 +01:00
Martin Geisler
029aa8b139
Merge pull request #117 from google/thread-speaker-notes
Add notes to threads.md
2023-01-09 14:33:16 +01:00
Martin Geisler
e835ee6cdf Add notes to threads.md
From the discussion in #63.
2023-01-09 14:32:04 +01:00
Martin Geisler
1162c554c0
Merge pull request #128 from google/speaker-notes
Add speaker notes for the first few slides
2023-01-09 14:28:50 +01:00
Martin Geisler
f4b753b7c5 Speaker notes for “Rust Ecosystem” 2023-01-09 14:27:13 +01:00
Martin Geisler
62d206506f Speaker notes for “Running Cargo Locally” 2023-01-09 14:27:13 +01:00
Martin Geisler
3db19fd2e5 Speaker notes for “Using Cargo” 2023-01-09 14:27:13 +01:00
Martin Geisler
b1e11304a7 Speaker notes for “Runtime Guarantees” 2023-01-09 14:27:13 +01:00
Martin Geisler
ba3c6b0de9 Speaker notes for “Modern Features” 2023-01-09 14:27:13 +01:00
Martin Geisler
cf505e99cd Rephrase “No memory leaks”
The footnote was added before we had support for speaker notes. It’s
too large to show on the screen during a classroom presentation, so it
has now been moved to the speaker notes.

I tried to keep the information intact, including keeping the word
“mostly” on the slide.
2023-01-09 14:26:47 +01:00
Martin Geisler
a7adf49002 Speaker notes for “Why Rust?” 2023-01-09 14:26:47 +01:00
Martin Geisler
50b0ad76eb Introduce speaker notes on welcome page 2023-01-09 14:24:02 +01:00
Andrew Walbran
49b4fff348
Merge pull request #131 from fbornhofen/main
Add speaker notes to copy-clone.md
2023-01-09 13:05:02 +00:00
Fabian Bornhofen
0723135dc6 Remove bullet point about printing p1 2023-01-09 13:39:39 +01:00
Fabian Bornhofen
45bc1233d2 s/twice/again/ 2023-01-09 13:37:06 +01:00
Fabian Bornhofen
e213f9dbd3 Add speaker notes to copy-clone.md 2023-01-09 13:20:00 +01:00
Andrew Walbran
ba275812aa
Merge pull request #129 from hezhizhen/patch-1
Fix typo in `structure.md`
2023-01-09 10:14:57 +00:00
Zhizhen He
b287aeada1
Fix typo in structure.md 2023-01-09 02:01:28 +08:00
Martin Geisler
7e0670e6b7
Merge pull request #126 from marshallpierce/patch-2
Use rustls instead of openssl
2023-01-07 14:50:18 +01:00
Martin Geisler
ca0f475fad
Merge pull request #127 from imichael2e2/main
Update broken links
2023-01-07 14:49:11 +01:00
Michael Lee
3f4ae0606d Update broken links 2023-01-07 15:38:40 +08:00
Andrew Walbran
d3605aaaee
Merge pull request #125 from google/dependabot/cargo/tokio-1.24.1
Bump tokio from 1.23.0 to 1.24.1
2023-01-06 22:26:43 +00:00
Marshall Pierce
b67908698f Use rustls instead of openssl
Using the `rustls-tls` feature on reqwest will use rustls and ring, which should compile on any system.
2023-01-06 15:22:40 -07:00
dependabot[bot]
0b7357a32d
Bump tokio from 1.23.0 to 1.24.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.24.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 22:02:55 +00:00
Ilya Grigoriev
68eed5b4f2
Error handling: clarify printing of Result
Two examples may print either `Ok(username)` or `Err(error)`.
This commit clarifies this fact.
2023-01-06 12:35:05 -08:00
Martin Geisler
e074b8c87f
Merge pull request #122 from marshallpierce/patch-1
Create an empty Vec rather than pre-allocating
2023-01-06 17:51:56 +01:00
Marshall Pierce
0a9dd33e58
Create an empty rather than pre-allocating
It might give the impression that you can only write to a Vec that has capacity, when in fact Vec's Write impl will grow the storage as needed. While pre-allocating is probably a good efficiency win in many circumstances, I think it's probably worth minimizing the number of concepts in play in this example.
2023-01-06 09:47:42 -07:00
鐘天楽
c8f626e573
for-loop bonus explanation (#108)
* for-loop bonus explanation
2023-01-06 10:15:16 +01:00