Skip to content

Commit

Permalink
Remove redundant syntax (#2111)
Browse files Browse the repository at this point in the history
Either use the `function` or `()` but not both, it's redundant.
  • Loading branch information
tomposmiko authored Mar 15, 2024
1 parent 4690717 commit dc066dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ myfunc() {

```bash
# Same as above (alternate syntax)
function myfunc() {
function myfunc {
echo "hello $1"
}
```
Expand Down

0 comments on commit dc066dc

Please sign in to comment.