{"action":"closed","issue":{"url":"https://api.github.com/repos/Araq/Nim/issues/1854","labels_url":"https://api.github.com/repos/Araq/Nim/issues/1854/labels{/name}","comments_url":"https://api.github.com/repos/Araq/Nim/issues/1854/comments","events_url":"https://api.github.com/repos/Araq/Nim/issues/1854/events","html_url":"https://github.com/Araq/Nim/issues/1854","id":53318765,"number":1854,"title":"doc2 does not produce documentation for procs ending with an expression","user":{"login":"BlaXpirit","id":371383,"avatar_url":"https://avatars.githubusercontent.com/u/371383?v=3","gravatar_id":"","url":"https://api.github.com/users/BlaXpirit","html_url":"https://github.com/BlaXpirit","followers_url":"https://api.github.com/users/BlaXpirit/followers","following_url":"https://api.github.com/users/BlaXpirit/following{/other_user}","gists_url":"https://api.github.com/users/BlaXpirit/gists{/gist_id}","starred_url":"https://api.github.com/users/BlaXpirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlaXpirit/subscriptions","organizations_url":"https://api.github.com/users/BlaXpirit/orgs","repos_url":"https://api.github.com/users/BlaXpirit/repos","events_url":"https://api.github.com/users/BlaXpirit/events{/privacy}","received_events_url":"https://api.github.com/users/BlaXpirit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Araq/Nim/labels/Documentation","name":"Documentation","color":"d4c5f9"},{"url":"https://api.github.com/repos/Araq/Nim/labels/High%20Priority","name":"High Priority","color":"e30c0c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-03T23:26:58Z","updated_at":"2015-03-22T08:44:52Z","closed_at":"2015-03-22T08:44:52Z","body":"Using `nim doc2`, functions consisting of one line and without `return` statement are missing their description (documentation comment).\r\n\r\nExample:\r\n\r\n```nim\r\nproc `<`*(a, b: Time): bool =\r\n  ## *Returns*: whether ``a`` is earlier than ``b``\r\n  a.microseconds < b.microseconds\r\n```\r\nAnd more: [source](https://github.com/BlaXpirit/nim-csfml/blob/a9732fd4f2084756cc9ec16fcc2cc671633f32b6/src/csfml_system.nim#L108) vs [doc](https://cdn.rawgit.com/BlaXpirit/nim-csfml/6df9060486c42aceec72afa71c80d74c6eb31295/csfml_system.html#==,Vector2i,Vector2i)"}}