aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomantas Jadenkus <[email protected]>2021-02-13 12:46:41 +0000
committerDomantas Jadenkus <[email protected]>2021-02-13 12:46:41 +0000
commit6799088579fec4400eee897aba13e9d6a3ac8f29 (patch)
tree377c2c26e83f754d254a98c3be6b741a7d23a6a6
parent3a4d273ac2506fe5ab2ff2861e5ae702ab44eafe (diff)
update doc
-rw-r--r--crates/assists/src/handlers/generate_from_impl_for_enum.rs2
-rw-r--r--crates/assists/src/tests/generated.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/assists/src/handlers/generate_from_impl_for_enum.rs b/crates/assists/src/handlers/generate_from_impl_for_enum.rs
index 8e68ebc7a..95dc9c34a 100644
--- a/crates/assists/src/handlers/generate_from_impl_for_enum.rs
+++ b/crates/assists/src/handlers/generate_from_impl_for_enum.rs
@@ -21,7 +21,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists};
21// 21//
22// impl From<u32> for A { 22// impl From<u32> for A {
23// fn from(v: u32) -> Self { 23// fn from(v: u32) -> Self {
24// A::One(v) 24// Self::One(v)
25// } 25// }
26// } 26// }
27// ``` 27// ```
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs
index 6f2b22bc2..0516deaff 100644
--- a/crates/assists/src/tests/generated.rs
+++ b/crates/assists/src/tests/generated.rs
@@ -499,7 +499,7 @@ enum A { One(u32) }
499 499
500impl From<u32> for A { 500impl From<u32> for A {
501 fn from(v: u32) -> Self { 501 fn from(v: u32) -> Self {
502 A::One(v) 502 Self::One(v)
503 } 503 }
504} 504}
505"#####, 505"#####,