1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-05 16:10:31 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.
}