Skip to content

Commit 7b145bd

Browse files
Rustdocs fixes
1 parent f75f070 commit 7b145bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/assists/src/handlers/replace_qualified_name_with_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) fn replace_qualified_name_with_use(
5151
)
5252
}
5353

54-
/// Adds replacements to `re` that shorten `path` in all descendants of `node`.g
54+
/// Adds replacements to `re` that shorten `path` in all descendants of `node`.
5555
fn shorten_paths(rewriter: &mut SyntaxRewriter<'static>, node: SyntaxNode, path: &ast::Path) {
5656
for child in node.children() {
5757
match_ast! {

crates/ide_helpers/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
//! A module with ide helpers for high-level ide features.
12
use hir::{Crate, Enum, Module, ScopeDef, Semantics, Trait};
23
use ide_db::RootDatabase;
34
use syntax::ast::{self, make};
45

56
pub mod insert_use;
67

8+
/// Converts the mod path struct into its ast representation.
79
pub fn mod_path_to_ast(path: &hir::ModPath) -> ast::Path {
810
let _p = profile::span("mod_path_to_ast");
9-
11+
1012
let mut segments = Vec::new();
1113
let mut is_abs = false;
1214
match path.kind {

0 commit comments

Comments
 (0)