mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
clarify doc
This commit is contained in:
parent
4972cb759e
commit
61ab31f709
@ -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 New Issue
Block a user