1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-19 08:53:12 +02:00
Frances Wingerter 03df73e747
unsafe: mutable-static: do not create reference (#2736)
`println!` adds references (&) to its arguments, to avoid moving them.

This is undesirable here, because it is extremely error-prone to take
references to `static mut`s. We could `println!("{}", {counter})`, but
this is somewhat exotic syntax and just sticking with `dbg!` also avoids
this problem as it does not add references.
2025-05-06 15:55:05 +00:00
..
2025-05-06 15:54:04 +00:00
2023-11-29 16:39:24 +01:00
2024-10-15 16:13:53 +02:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00

Course Content

The files in this directory make up the content of the course. The files here can include third-party content from ../third_party/ as well.

When we publish a translation of the course, we git restore the src/ and third_party/ directories at the repository root back to the date listed in the POT-Creation-Date header of the translation. It is crucial, that all translatable content lives in those two directories. The other files (such as book.toml and theme/) are not restored and we always use the latest version of them.