aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-23 16:13:40 +0100
committerAleksey Kladov <[email protected]>2019-10-23 16:57:18 +0100
commitb5f13d8d51ef9107363a60b894a741ab596921ce (patch)
tree32fa43c640821d11d283e6f13ed41057d18dd27a /crates/ra_assists
parentedf4d8e555c6847fb9e6e61d727c4def11789bfc (diff)
xtask: move codegen to a module
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/assists/early_return.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/assists/early_return.rs b/crates/ra_assists/src/assists/early_return.rs
index 9c95adc53..f7d7e12e7 100644
--- a/crates/ra_assists/src/assists/early_return.rs
+++ b/crates/ra_assists/src/assists/early_return.rs
@@ -2,7 +2,7 @@
2//! 2//!
3//! Replace a large conditional with a guarded return. 3//! Replace a large conditional with a guarded return.
4//! 4//!
5//! ```notrust 5//! ```text
6//! fn <|>main() { 6//! fn <|>main() {
7//! if cond { 7//! if cond {
8//! foo(); 8//! foo();
@@ -11,7 +11,7 @@
11//! } 11//! }
12//! ``` 12//! ```
13//! -> 13//! ->
14//! ```notrust 14//! ```text
15//! fn main() { 15//! fn main() {
16//! if !cond { 16//! if !cond {
17//! return; 17//! return;