Questions about leak prevention

I am following the guide at

I am new to this and I wanted to host a simple html site for learning purposes, I got to the following part:

Tip: A good practice to avoid leaking an Onion Service to a local network is to run Onion Services over Unix sockets instead of a TCP socket. You will need to add the following two lines to your torrc file:

HiddenServiceDir /var/lib/tor/my-website/
HiddenServicePort 80 unix:/var/run/tor/my-website.sock

I am a little confused, further up in the guide the example website name was my_website

So, my question is, when it says my-website is the - a typo and is supposed to be an underscore or is that a different name on purpose? If the name I use is onion, should the part about leaking prevention also be onion or should it be something else?

Thanks in advance for the help.