diff --git a/snippets/show.md b/snippets/show.md index c5b4e439b..2e2302d19 100644 --- a/snippets/show.md +++ b/snippets/show.md @@ -9,5 +9,5 @@ const show = (...el) => [...el].forEach(e => e.style.display = ''); ``` ```js -show(document.querySelector('img')); // Shows all elements on the page +show(document.querySelectorAll('img')); // Shows all elements on the page ```