Skip to content

Commit

Permalink
Fixing a command which is giving errors while copying and pasting (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Sharma <connecttorajat@outlook.com>
  • Loading branch information
rajat-dlt authored Apr 26, 2022
1 parent 671a544 commit e1ae5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_jsdoc/tutorials/using-iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ and you would obtain an iterator as follows (depending on the api you are callin
```javascript
// use await to get the iterator and pass it to getAllResults
const iterator = await ctx.stub.getStateByRange(startKey, endKey);
let results await getAllResults(iterator);
let results = await getAllResults(iterator);

// use await to get the object containing the iterator and metadata and
// pass it to getAllResults. All Pagination type queries return an object
Expand Down

0 comments on commit e1ae5b3

Please sign in to comment.