From b2195031f8524b2e7d250266572d1d78f249d6b0 Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Mon, 14 Jun 2021 22:04:26 -0600 Subject: [PATCH] Fix up the challenge --- exercise/docs/src/lib.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/exercise/docs/src/lib.rs b/exercise/docs/src/lib.rs index 8f19682..aa499a9 100644 --- a/exercise/docs/src/lib.rs +++ b/exercise/docs/src/lib.rs @@ -31,5 +31,14 @@ impl Pumpkin { pub const BURNT_ORANGE: i32 = 13; -// Challenge: Move the Pumpkin struct's documentation *inside* of the struct definition. Can you -// see why that might not be the ideal approach? +// Challenge: Find the option to pass to `cargo doc` so that documentation for this private item +// gets generated as well. Hint: `cargo doc -h` + +/// For internal use only. In fact, this documentation is so private that it won't be generated. +/// At least not by default. +enum PrivateEnum { + /// For Halloween. To be lit by candlelight. + JackOLantern, + /// For dessert during North American winter holidays. + PumpkinPie, +}