From a7bef92b36a4d4066942a86e1530464f765429fa Mon Sep 17 00:00:00 2001 From: TPReal Date: Thu, 1 Jun 2023 20:54:41 +0200 Subject: [PATCH] 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. --- src/enums.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/enums.md b/src/enums.md index 7a15d307..630233e1 100644 --- a/src/enums.md +++ b/src/enums.md @@ -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. }