{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/4366","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/4366/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/4366/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/4366/events","html_url":"https://github.com/nim-lang/Nim/issues/4366","id":161027890,"number":4366,"title":"tables.`[]=`[A](t: var CountTable[A]; key: A; val: int) should support val = 0","user":{"login":"vktec","id":14016168,"avatar_url":"https://avatars.githubusercontent.com/u/14016168?v=3","gravatar_id":"","url":"https://api.github.com/users/vktec","html_url":"https://github.com/vktec","followers_url":"https://api.github.com/users/vktec/followers","following_url":"https://api.github.com/users/vktec/following{/other_user}","gists_url":"https://api.github.com/users/vktec/gists{/gist_id}","starred_url":"https://api.github.com/users/vktec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vktec/subscriptions","organizations_url":"https://api.github.com/users/vktec/orgs","repos_url":"https://api.github.com/users/vktec/repos","events_url":"https://api.github.com/users/vktec/events{/privacy}","received_events_url":"https://api.github.com/users/vktec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-18T14:49:12Z","updated_at":"2016-06-18T14:49:12Z","closed_at":null,"body":"See this code example:\r\n\r\n```nim\r\nimport tables\r\n\r\nvar ct = initCountTable[string]()\r\n\r\n# Create an entry\r\nct[\"foo\"] = 40 # Works fine\r\n# Now lets reset it. No del method, so we'll just set it to 0\r\nct[\"foo\"] = 0 # 0 < val  [AssertionError]\r\n```\r\n\r\nThe expression for the assertion should be `0 <= val` rather than `0 < val`.\r\nI can make a pull request if this would be useful, however, as it is such a minor change, I thought it might be simpler for this to be done by a contributor.\r\n"}}
{"actor":{"display_login":"vktec"}}