Skip to content

Commit

Permalink
Fix docs typo (sindresorhus#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
dscotese authored and sevteen committed Oct 28, 2024
1 parent 8d2cf09 commit edd2898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/2-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ options.headers.foo = 'bar';

// Note that `Options` stores normalized options, therefore it needs to be passed as the third argument.
const {headers} = await got('anything', undefined, options).json();
console.log(headers.Foo);
console.log(headers.foo);
//=> 'bar'
```

Expand All @@ -52,7 +52,7 @@ options.headers.foo = 'bar';

// Note that `options` is a plain object, therefore it needs to be passed as the second argument.
const {headers} = await got('anything', options).json();
console.log(headers.Foo);
console.log(headers.foo);
//=> 'bar'
```

Expand Down

0 comments on commit edd2898

Please sign in to comment.