Skip to content

Commit e72ddac

Browse files
committed
gopls/doc: fix formatting of refactor.extract.constant docs
The enclosing backticks got missed in a couple places.
1 parent ca281cf commit e72ddac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gopls/doc/features/transformation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
416416
within 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.
424424
If the default name for the new declaration is already in use, gopls
425425
generates a fresh name.

0 commit comments

Comments
 (0)