]> git.lizzy.rs Git - rust.git/commitdiff
Rustdocs fixes
authorKirill Bulatov <mail4score@gmail.com>
Fri, 27 Nov 2020 10:26:20 +0000 (12:26 +0200)
committerKirill Bulatov <mail4score@gmail.com>
Fri, 27 Nov 2020 17:05:10 +0000 (19:05 +0200)
crates/assists/src/handlers/replace_qualified_name_with_use.rs
crates/ide_helpers/src/lib.rs

index 9b8caacd99b2b16c228aa9344ee9379c72db876f..5e5c41a6fe306f989cb82bc59f5760ecc7f96bf7 100644 (file)
@@ -51,7 +51,7 @@ pub(crate) fn replace_qualified_name_with_use(
     )
 }
 
-/// Adds replacements to `re` that shorten `path` in all descendants of `node`.g
+/// Adds replacements to `re` that shorten `path` in all descendants of `node`.
 fn shorten_paths(rewriter: &mut SyntaxRewriter<'static>, node: SyntaxNode, path: &ast::Path) {
     for child in node.children() {
         match_ast! {
index 069cb2bdd2aae0110841089ee2972e42ac4905ad..ad4404b19552b6c87cb288fd7a33c2b934124035 100644 (file)
@@ -1,12 +1,14 @@
+//! A module with ide helpers for high-level ide features.
 use hir::{Crate, Enum, Module, ScopeDef, Semantics, Trait};
 use ide_db::RootDatabase;
 use syntax::ast::{self, make};
 
 pub mod insert_use;
 
+/// Converts the mod path struct into its ast representation.
 pub fn mod_path_to_ast(path: &hir::ModPath) -> ast::Path {
     let _p = profile::span("mod_path_to_ast");
-    
+
     let mut segments = Vec::new();
     let mut is_abs = false;
     match path.kind {