Skip to content

Commit

Permalink
Fix typespec of get_by_id/2 (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE authored Mar 1, 2024
1 parent 6fc70d4 commit be506b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/floki.ex
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ defmodule Floki do
nil
"""
@spec get_by_id(html_tree() | html_node(), String.t()) :: html_tree
@spec get_by_id(html_tree() | html_node(), String.t()) :: html_node() | nil
def get_by_id(html_tree_as_tuple, id)
when is_list(html_tree_as_tuple) or is_html_node(html_tree_as_tuple) do
html_tree_as_tuple
Expand Down

0 comments on commit be506b4

Please sign in to comment.