diff --git a/README.md b/README.md index c11ef16..fc9b233 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ const markup = ` const collection = createNode(markup); // HTMLCollection -collection.querySelector('span:last-child').textContent; +collection[1].textContent; // 'world' ```