It should do what Matt says, but Roberto is right that it's wrong.
Looks like I did got confused here when I wrote that one. Will fix.