[swift/en]Fix class name from Rect to Square

Hi there!
I am a regular user of the site and came across this issue just now.
The comments and code refer to a `Square` class, but the actual class was `Rect`.

Thank you very much for the great resource!