Tutorials: Add a stylesheet error

This should be a quick one: The sample Motoko file for the Add a Stylesheet is reporting errors when run with the code playground in the browser, and it’s the same error I can’t fix when getting to dfx deploy step of the tutorial: Add a stylesheet :: Internet Computer

Here’s the message or you could run it for yourself. Can someone add the fix?
stdin:26.29-32.7: warning [M0148], block syntax is deprecated in this position, use ‘do { … }’
stdin:27.8-27.12: type error [M0096], expression of type…