Skip to content

Commit 58ce5f0

Browse files
authored
Correction of the wrong position of a parenthesis (#3778)
1 parent a8dea1c commit 58ce5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/ecto/query/window_api.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ defmodule Ecto.Query.WindowAPI do
7272
@doc """
7373
Defines a value based on the function and the window. See moduledoc for more information.
7474
75-
from e in Employee, select: over(avg(e.salary, partition_by: e.depname))
75+
from e in Employee, select: over(avg(e.salary), partition_by: e.depname)
7676
"""
7777
def over(window_function, window_name), do: doc! [window_function, window_name]
7878

0 commit comments

Comments
 (0)