From f10c5d18d9b11ed6cbf3e98b6fd367b9119e1c11 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Sun, 2 Jan 2022 20:59:56 +0200 Subject: [PATCH] docs(complete): Fix imports in documentation Use `shells::Bash` instead of `generators::Bash` --- clap_complete/src/generator/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clap_complete/src/generator/mod.rs b/clap_complete/src/generator/mod.rs index ef8e2b3e558..66b5907a38e 100644 --- a/clap_complete/src/generator/mod.rs +++ b/clap_complete/src/generator/mod.rs @@ -124,7 +124,7 @@ pub trait Generator { /// Next, we place a `build.rs` in our project root. /// /// ```ignore -/// use clap_complete::{generate_to, generators::Bash}; +/// use clap_complete::{generate_to, shells::Bash}; /// use std::env; /// use std::io::Error; /// @@ -195,7 +195,7 @@ where /// /// mod cli; /// use std::io; -/// use clap_complete::{generate, generators::Bash}; +/// use clap_complete::{generate, shells::Bash}; /// /// fn main() { /// let matches = cli::build_cli().get_matches();