File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ newly created declaration that contains the selected code:
410410 ![ Before extracting a var] ( ../assets/extract-var-before.png )
411411 ![ After extracting a var] ( ../assets/extract-var-after.png )
412412
413- - ** `refactor.extract.constant** does the same thing for a constant
413+ - ** ` refactor.extract.constant ` ** does the same thing for a constant
414414 expression, introducing a local const declaration.
415415- ** ` refactor.extract.variable-all ` ** replaces all occurrences of the selected expression
416416within the function with a reference to a new local variable named ` newVar ` .
@@ -419,7 +419,7 @@ This extracts the expression once and reuses it wherever it appears in the funct
419419 ![ Before extracting all occurrences of EXPR] ( ../assets/extract-var-all-before.png )
420420 ![ After extracting all occurrences of EXPR] ( ../assets/extract-var-all-after.png )
421421
422- - ** `refactor.extract.constant-all** does the same thing for a constant
422+ - ** ` refactor.extract.constant-all ` ** does the same thing for a constant
423423 expression, introducing a local const declaration.
424424If the default name for the new declaration is already in use, gopls
425425generates a fresh name.
You can’t perform that action at this time.
0 commit comments