mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
clarify doc
This commit is contained in:
parent
4972cb759e
commit
61ab31f709
1 changed files with 3 additions and 1 deletions
|
@ -33,12 +33,13 @@ use crate::{
|
|||
|
||||
// Assist: extract_function
|
||||
//
|
||||
// Extracts selected statements into new function.
|
||||
// Extracts selected statements and comments into new function.
|
||||
//
|
||||
// ```
|
||||
// fn main() {
|
||||
// let n = 1;
|
||||
// $0let m = n + 2;
|
||||
// // calculate
|
||||
// let k = m + n;$0
|
||||
// let g = 3;
|
||||
// }
|
||||
|
@ -53,6 +54,7 @@ use crate::{
|
|||
//
|
||||
// fn $0fun_name(n: i32) {
|
||||
// let m = n + 2;
|
||||
// // calculate
|
||||
// let k = m + n;
|
||||
// }
|
||||
// ```
|
||||
|
|
Loading…
Reference in a new issue