Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/generate_documentation_template.rs')
| -rw-r--r-- | crates/ide_assists/src/handlers/generate_documentation_template.rs | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/crates/ide_assists/src/handlers/generate_documentation_template.rs b/crates/ide_assists/src/handlers/generate_documentation_template.rs index 3abdddbb8c..8500a4d254 100644 --- a/crates/ide_assists/src/handlers/generate_documentation_template.rs +++ b/crates/ide_assists/src/handlers/generate_documentation_template.rs @@ -7,35 +7,34 @@ use syntax::{ use crate::assist_context::{AssistContext, Assists}; -/// Assist: generate_documentation_template -/// -/// Adds a documentation template above a function definition / declaration -/// -/// ``` -/// fn my_func(a: i32, b: i32) -> Result<(), std::io::Error> { -/// unimplemented!() -/// } -/// ``` -/// -> -/// ``` -/// /// . -/// /// -/// /// # Examples -/// /// -/// /// ```rust -/// /// use my_crate::my_func; -/// /// -/// /// let result = my_func(a, b); -/// /// assert_eq!(result, ); -/// /// ``` -/// /// -/// /// # Errors -/// /// -/// /// This function will return an error if . -/// fn my_func(a: i32, b: i32) -> Result<(), std::io::Error> { -/// unimplemented!() -/// } -/// ``` +// Assist: generate_documentation_template +// +// Adds a documentation template above a function definition / declaration. +// +// ``` +// fn my_$0func(a: i32, b: i32) -> Result<(), std::io::Error> { +// unimplemented!() +// } +// ``` +// -> +// ``` +// /// . +// /// +// /// # Examples +// /// +// /// ``` +// /// use test::my_func; +// /// +// /// assert_eq!(my_func(a, b), ); +// /// ``` +// /// +// /// # Errors +// /// +// /// This function will return an error if . +// fn my_func(a: i32, b: i32) -> Result<(), std::io::Error> { +// unimplemented!() +// } +// ``` pub(crate) fn generate_documentation_template( acc: &mut Assists, ctx: &AssistContext, |