1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-26 18:51:00 +02:00

Mentioned the XKCD source of the joke in enums.md (#748)

XKCD is under CC BY-NC 2.5 licence, so it is fair to at least link to the source when reusing a joke.
This commit is contained in:
TPReal
2023-06-01 20:54:41 +02:00
committed by GitHub
parent 7041fc62bf
commit a7bef92b36

View File

@ -5,6 +5,7 @@ different variants:
```rust,editable
fn generate_random_number() -> i32 {
// Implementation based on https://xkcd.com/221/
4 // Chosen by fair dice roll. Guaranteed to be random.
}