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

Replace mentions to string() type with charlist() #90

Open
eksperimental opened this issue May 30, 2022 · 0 comments
Open

Replace mentions to string() type with charlist() #90

eksperimental opened this issue May 30, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@eksperimental
Copy link
Contributor

eksperimental commented May 30, 2022

lib/ex_doc/language/elixir.ex: The function call on line 95 is expected to have type nonempty_list(A) but it has type string()
94   defp doc?({{_, name, _}, _, _, :none, _}, _type) do
95     hd(Atom.to_charlist(name)) != ?_
96   end

Not sure if should be for Erlang functions, (maybe), but certainly for Elixir functions as string() is discouraged.

@eksperimental eksperimental changed the title Replace mentions to string() type as charlist() Replace mentions to string() type with charlist() May 30, 2022
@erszcz erszcz added enhancement New feature or request good first issue Good for newcomers labels May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants