diff --git a/snippets/show.md b/snippets/show.md index cf30be9b7..6b97deb2f 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.querySelectorAll('img')); // Shows all elements on the page +show(...document.querySelectorAll('img')); // Shows all elements on the page ```