I agree with Freddy. The Docs page is absolutely in error. Commas are ignored anywhere in the specified money literal. is plain wrong. You cannot have commas at all in a money literal. You can have commas in a string that you convert to money, but that's something else.
In the upper right of the page, there is a pen icon that will take you to the Github repro for the Docs. If you are brave you can edit the page directly and submit a pull request. It may be better to submit an issue and let the writers work it out. (If you submit a pull request, it will be reviewed.)