Skip to content

Commit 59c58bb

Browse files
Typo on README.md
I believe `headers.entries()` returns a *Map#entries()* like iterator so that `[key, value]` would work while `(key, value)` won't do what people think it does.
1 parent 23f5755 commit 59c58bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ headers.set('Content-Type', 'application/json')
486486
headers.add('Accept', 'application/json')
487487
headers.add('Accept', 'text/html')
488488

489-
for (const (name, value) of headers.entries()) {
489+
for (const [name, value] of headers.entries()) {
490490
// ('Content-Type', 'application/json')
491491
// ('Accept', 'application/json')
492492
// ('Accept', 'text/html')

0 commit comments

Comments
 (0)