Skip to content

Commit

Permalink
Add missing closing parenthesis in code example (#50253)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurooba authored May 3, 2023
1 parent 188479a commit 233165a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { addQueryArgs } from '@wordpress/url';

const queryParams = { include: [1,2,3] }; // Return posts with ID = 1,2,3.

apiFetch( { path: addQueryArgs( '/wp/v2/posts', queryParams } ).then( ( posts ) => {
apiFetch( { path: addQueryArgs( '/wp/v2/posts', queryParams ) } ).then( ( posts ) => {
console.log( posts );
} );
```
Expand Down

0 comments on commit 233165a

Please sign in to comment.