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:
parent
7041fc62bf
commit
a7bef92b36
@ -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.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user