Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine docs in Plug.Debugger #164

Merged
merged 1 commit into from
Jan 5, 2015
Merged

Refine docs in Plug.Debugger #164

merged 1 commit into from
Jan 5, 2015

Conversation

whatyouhide
Copy link
Member

  • Added @doc false to the template function (generated by EEx) and to the get_snippet function. These functions had no description nor comments.
  • Added examples on how to use Plug.Debugger.wrap/3, both in the module's description and in wrap/3's description.
  • Other minor formatting changes.

@@ -244,6 +271,7 @@ defmodule Plug.Debugger do

@radius 5

@doc false
def get_snippet(file, line) do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be defp then, no? :)

- Added `@doc false` to the `template` function (generated by EEx) and to the
  `get_snippet` function. These functions had no description nor comments.
- Added examples on how to use `Plug.Debugger.wrap/3`, both in the module's
  description and in `wrap/3`'s description.
- Other minor formatting changes.
@whatyouhide
Copy link
Member Author

Changed both definitions to defp. I didn't do that before in order to avoid changing the public API, I didn't know if stuff like Phoenix was using it. 😃

@josevalim
Copy link
Member

It had no documentation, so they should not be using it. :) Thank you!

josevalim added a commit that referenced this pull request Jan 5, 2015
@josevalim josevalim merged commit 21c9e41 into elixir-plug:master Jan 5, 2015
@whatyouhide whatyouhide deleted the plug-debugger-docs branch January 6, 2015 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants