Update advanced.rst

Minor typos / omissions.

I tried out this example and it didn't work, so I added trailing colons and it did. I think it's just a typo.