{"action":"opened","issue":{"url":"https://api.github.com/repos/davidkalosi/js-money/issues/11","labels_url":"https://api.github.com/repos/davidkalosi/js-money/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/davidkalosi/js-money/issues/11/comments","events_url":"https://api.github.com/repos/davidkalosi/js-money/issues/11/events","html_url":"https://github.com/davidkalosi/js-money/issues/11","id":121914169,"number":11,"title":"Documentation issue","user":{"login":"levacic","id":1636354,"avatar_url":"https://avatars.githubusercontent.com/u/1636354?v=3","gravatar_id":"","url":"https://api.github.com/users/levacic","html_url":"https://github.com/levacic","followers_url":"https://api.github.com/users/levacic/followers","following_url":"https://api.github.com/users/levacic/following{/other_user}","gists_url":"https://api.github.com/users/levacic/gists{/gist_id}","starred_url":"https://api.github.com/users/levacic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levacic/subscriptions","organizations_url":"https://api.github.com/users/levacic/orgs","repos_url":"https://api.github.com/users/levacic/repos","events_url":"https://api.github.com/users/levacic/events{/privacy}","received_events_url":"https://api.github.com/users/levacic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-13T11:35:22Z","updated_at":"2015-12-13T11:35:22Z","closed_at":null,"body":"The documentation states that, for example, to add money, one can do the following:\r\n\r\n```js\r\nfiveEur.add(250, Money.EUR); // 7.50 EUR\r\n```\r\n\r\nHowever, inspecting the code and testing shows that this is not the case; instead, the correct way seems to be:\r\n\r\n```js\r\nfiveEur.add(new Money(250, Money.EUR))\r\n```\r\n\r\nIs that correct? If so, I guess the docs should be fixed to reflect that - I can send a PR if you don't have the time, just wanted to check first."}}