Skip to content

Commit 90b8d63

Browse files
author
Hunter T
authored
Update README.md
1 parent 14b4425 commit 90b8d63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Two exceptions:
397397

398398
### Variable Declaration
399399

400-
Unless exported, all variables should be lowercase. If a variable is being exported, it should be completely uppercase with `_` appended to the beginning of the variable.
400+
Unless exported, all variables should be lowercase. If a variable is being exported, it should be completely uppercase with `_` appended to the beginning of the variable and between each word.
401401

402402
Don't use `let` or `readonly` to create variables. `declare` should *only* be used for associative arrays. `local` should always be used in functions unless the variable is called outside of the function.
403403

@@ -408,13 +408,15 @@ let foo++
408408
readonly bar="something"
409409
FOOBAR=baz
410410
export food=5
411+
export food_cart=5
411412

412413
## Right
413414
i=5
414415
((i++))
415416
bar="something"
416417
foobar=baz
417-
export _FOOD=5 # or MY_FOOD
418+
export _FOOD=5
419+
export _FOOD_CART=5
418420
```
419421

420422
### shebang

0 commit comments

Comments
 (0)