That looks about right.
The technique I use to not lose track of braces is to always type them in pairs. If I type an open brace I immediately type the close brace and then cursor back and start putting in code. The IDE also has a brace matching tool. Cursor to one it will highlight it's match. The code format tool will also spot a missing brace.
It's easy to drop one or get an extra one when cutting and pasting too. Again, use the format tool. (ctrl-t)
No matter how careful you are it will still happen. So often that a compiler error like that should have you checking for mismatched braces. I tend to ctrl-t (format), ctrl-s (save), and then ctrl-r or ctrl-u, compile or compile and upload, as a habit.