summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/collections.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/collections.md b/docs/collections.md
index 557700a0c..474bbe7a1 100644
--- a/docs/collections.md
+++ b/docs/collections.md
@@ -115,7 +115,7 @@ export let collection: any;
export async function createCollection() {
const allPokemonResponse = await fetch(`https://pokeapi.co/api/v2/pokemon?limit=150`);
const allPokemonResult = await allPokemonResponse.json();
- const allPokemon = allPokemonResult.result;
+ const allPokemon = allPokemonResult.results;
const allLetters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
return {
// `routes` defines the total collection of routes as `params` data objects.