From 9abcab16693ac5e162c4ed28c4373ed6bd507380 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 29 Feb 2020 13:50:47 +0100 Subject: Fix typo --- crates/ra_syntax/src/ast/make.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/ast') diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index 60cd9d260..3f11b747f 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs @@ -15,7 +15,7 @@ pub fn name_ref(text: &str) -> ast::NameRef { pub fn path_segment(name_ref: ast::NameRef) -> ast::PathSegment { ast_from_text(&format!("use {};", name_ref.syntax())) } -pub fn path_unqalified(segment: ast::PathSegment) -> ast::Path { +pub fn path_unqualified(segment: ast::PathSegment) -> ast::Path { path_from_text(&format!("use {}", segment.syntax())) } pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path { -- cgit v1.2.3