We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b2b0f commit d70c7bfCopy full SHA for d70c7bf
lib/hexdocs/utils.ex
@@ -12,7 +12,7 @@ defmodule Hexdocs.Utils do
12
end
13
14
def latest_version(versions) do
15
- Enum.find(versions, &(&1.pre != [])) || List.first(versions)
+ Enum.find(versions, &(&1.pre == [])) || List.first(versions)
16
17
18
def latest_version?(package, version, all_versions) when package in @special_package_names do
0 commit comments