Skip to content

Commit

Permalink
Correction of the wrong position of a parenthesis (#3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malian authored Nov 17, 2021
1 parent a8dea1c commit 58ce5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/query/window_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule Ecto.Query.WindowAPI do
@doc """
Defines a value based on the function and the window. See moduledoc for more information.
from e in Employee, select: over(avg(e.salary, partition_by: e.depname))
from e in Employee, select: over(avg(e.salary), partition_by: e.depname)
"""
def over(window_function, window_name), do: doc! [window_function, window_name]

Expand Down

0 comments on commit 58ce5f0

Please sign in to comment.