{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/4422","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4422/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4422/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4422/events","html_url":"https://github.com/elixir-lang/elixir/pull/4422","id":142788055,"number":4422,"title":"Make @doc, @doc(value) and get_attribute/2, put_attribute/3 consistent","user":{"login":"lexmag","id":248290,"avatar_url":"https://avatars.githubusercontent.com/u/248290?v=3","gravatar_id":"","url":"https://api.github.com/users/lexmag","html_url":"https://github.com/lexmag","followers_url":"https://api.github.com/users/lexmag/followers","following_url":"https://api.github.com/users/lexmag/following{/other_user}","gists_url":"https://api.github.com/users/lexmag/gists{/gist_id}","starred_url":"https://api.github.com/users/lexmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexmag/subscriptions","organizations_url":"https://api.github.com/users/lexmag/orgs","repos_url":"https://api.github.com/users/lexmag/repos","events_url":"https://api.github.com/users/lexmag/events{/privacy}","received_events_url":"https://api.github.com/users/lexmag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T21:36:36Z","updated_at":"2016-03-22T21:54:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4422","html_url":"https://github.com/elixir-lang/elixir/pull/4422","diff_url":"https://github.com/elixir-lang/elixir/pull/4422.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/4422.patch"},"body":"At (@) syntax works with doc value, Module functions with actual representation.\r\n\r\nCloses #4418."},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/200048142","html_url":"https://github.com/elixir-lang/elixir/pull/4422#issuecomment-200048142","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4422","id":200048142,"user":{"login":"lexmag","id":248290,"avatar_url":"https://avatars.githubusercontent.com/u/248290?v=3","gravatar_id":"","url":"https://api.github.com/users/lexmag","html_url":"https://github.com/lexmag","followers_url":"https://api.github.com/users/lexmag/followers","following_url":"https://api.github.com/users/lexmag/following{/other_user}","gists_url":"https://api.github.com/users/lexmag/gists{/gist_id}","starred_url":"https://api.github.com/users/lexmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexmag/subscriptions","organizations_url":"https://api.github.com/users/lexmag/orgs","repos_url":"https://api.github.com/users/lexmag/repos","events_url":"https://api.github.com/users/lexmag/events{/privacy}","received_events_url":"https://api.github.com/users/lexmag/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T21:54:26Z","updated_at":"2016-03-22T21:54:26Z","body":"@NobbZ this patch actually fixes the problem described in the #4418 issue, the following code won't fail anymore:\r\n```elixir\r\ndoc = Module.get_attribute(mod, :doc)\r\nModule.put_attribute(mod, :doc, doc)\r\n```\r\nThe `doc` value, which `Module.get_attribute/2` returns, is in the {line, doc} format from now on."}}