From 1c7ece7364978817e8069250316437ab3b12484d Mon Sep 17 00:00:00 2001 From: rchriste Date: Wed, 1 Nov 2023 06:22:05 -0700 Subject: [PATCH] Mention when to enable the 'editor' feature (#177) * Mention when to enable the 'editor' feature I was confused at how to enable the Editor feature, which is to enable the `editor` feature. Which is obvious in hindsight. This small doc PR is meant to help prevent this point of confusion in the future. * Move comment about Editor and DateSelect prompts * Remove comment line already moved * Remove extra whitespace --- inquire/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inquire/src/lib.rs b/inquire/src/lib.rs index 667d3d3a..a932f237 100644 --- a/inquire/src/lib.rs +++ b/inquire/src/lib.rs @@ -12,6 +12,8 @@ //! - [`CustomType`] for text prompts that you would like to parse to a custom type, such as numbers or UUIDs; //! - [`Password`] for secretive text prompts. //! +//! \* The Editor and DateSelect prompts are available by enabling the `editor` and `date` features, respectively. +//! //! Check out the [GitHub repository](https://github.com/mikaelmello/inquire) to see demos of what you can do with `inquire`. //! //! # Features @@ -28,8 +30,6 @@ //! - Custom extensions for files created by [`Editor`] prompts; //! - and many others! //! -//! \* Date-related features are available by enabling the `date` feature. -//! //! # Simple Example //! //! ```rust no_run