From 5cd311d64ef8122a9d69d8ad35e82b02ba67e584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 20 Feb 2020 11:19:40 +0200 Subject: Fix off by one in onEnter --- crates/ra_ide/src/typing.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/crates/ra_ide/src/typing.rs b/crates/ra_ide/src/typing.rs index e5d1779fd..7f1b9150f 100644 --- a/crates/ra_ide/src/typing.rs +++ b/crates/ra_ide/src/typing.rs @@ -42,7 +42,7 @@ pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option me let x = 1 + 1; } +", + ); + do_check( + r" +///<|> Some docs +fn foo() { +} +", + r" +/// +/// <|> Some docs +fn foo() { +} ", ); do_check_noop( -- cgit v1.2.3