{"action":"opened","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-server/issues/109","labels_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/109/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/109/events","html_url":"https://github.com/aerospike/aerospike-server/issues/109","id":118455524,"number":109,"title":"doc mistake ","user":{"login":"tivvit","id":3392931,"avatar_url":"https://avatars.githubusercontent.com/u/3392931?v=3","gravatar_id":"","url":"https://api.github.com/users/tivvit","html_url":"https://github.com/tivvit","followers_url":"https://api.github.com/users/tivvit/followers","following_url":"https://api.github.com/users/tivvit/following{/other_user}","gists_url":"https://api.github.com/users/tivvit/gists{/gist_id}","starred_url":"https://api.github.com/users/tivvit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tivvit/subscriptions","organizations_url":"https://api.github.com/users/tivvit/orgs","repos_url":"https://api.github.com/users/tivvit/repos","events_url":"https://api.github.com/users/tivvit/events{/privacy}","received_events_url":"https://api.github.com/users/tivvit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T19:35:44Z","updated_at":"2015-11-23T19:35:44Z","closed_at":null,"body":"Hi,\r\n\r\nOn the page http://www.aerospike.com/docs/udf/examples/stream_udf_word_count.html\r\n\r\nThere is a bug in last paert of the example:\r\n\r\n```lua\r\nlocal function sum_words(word1, words2)\r\n  -- use map.merge() to merge two maps\r\n  -- if the same name exists in both maps, then use the function to merge the values.\r\n  return map.merge(a, b, math.sum)\r\nend\r\n```\r\n\r\nit should be:\r\n\r\n```lua\r\nlocal function sum_words(word1, words2)\r\n  -- use map.merge() to merge two maps\r\n  -- if the same name exists in both maps, then use the function to merge the values.\r\n  return map.merge(word1, words2, math.sum)\r\nend\r\n```\r\n\r\nHave you considered putting the docs to github too?\r\n"}}