Sort:  

Yes, that is a mistake. This is the correct command:

echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab

Unfortunately, I can no longer edit the article, so hopefully readers see this comment thread before it's too late!

you could edit it now;)

The correction has been applied to the article.