Skip to content

Commit eaef422

Browse files
Format analyzer-comments/javascript/resistor-color-duo/prefer_extracted_top_level_constant.md
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
1 parent 52b4a06 commit eaef422

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

analyzer-comments/javascript/resistor-color-duo/prefer_extracted_top_level_constant.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const %{name} = %{value}
99
export const decodedValue = (...)
1010
```
1111

12-
Only functions, classes and constants that are `export`ed, are visible and
13-
accessible from the outside. These constants can live in the same
14-
file without being exposed to other code. Also, extracting constants saves memory
15-
by avoiding repeated allocations in functions when those same constants are reused.
12+
Only functions, classes and constants that are `export`ed, are visible and accessible from the outside.
13+
These constants can live in the same file without being exposed to other code.
14+
Also, extracting constants saves memory by avoiding repeated allocations in functions when those same constants are reused.

0 commit comments

Comments
 (0)