Skip to content

Commit fe6be35

Browse files
committed
Merge pull request DrkSephy#46 from Lundgren/function-scope
Comment to named parameters is placed outside of the function scope
2 parents 26bce36 + a5d6228 commit fe6be35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,8 @@ to a function:
554554
```javascript
555555
function initializeCanvas(
556556
{ height=600, width=400, lineStroke='black'}) {
557-
// ...
557+
// Use variables height, width, lineStroke here
558558
}
559-
// Use variables height, width, lineStroke here
560559
```
561560

562561
If we want to make the entire value optional, we can do so by destructuring an

0 commit comments

Comments
 (0)