Skip to content

Commit

Permalink
Fix formatting for special function return types
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Oct 18, 2013
1 parent d47022f commit 68b8b3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions presto-docs/src/main/sphinx/functions/aggregate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ General Aggregate Functions

Returns the minimum value of all input values.

.. function:: sum(x) -> (same as input)
.. function:: sum(x) -> [same as input]

Returns the sum of all input values.

Expand All @@ -56,13 +56,13 @@ Approximate Aggregate Functions
(approximately normal) error distribution over all possible sets. It does
not guarantee an upper bound on the error for any specific input set.

.. function:: approx_percentile(x, p) -> (same as input)
.. function:: approx_percentile(x, p) -> [same as input]

Returns the approximate percentile for all input values of ``x`` at the
percentage ``p``. The value of ``p`` must be between zero and one and
must be constant for all input rows.

.. function:: approx_percentile(x, w, p) -> (same as input)
.. function:: approx_percentile(x, w, p) -> [same as input]

Returns the approximate weighed percentile for all input values of ``x``
using the per-item weight ``w`` at the percentage ``p``. The weight must be
Expand Down
14 changes: 7 additions & 7 deletions presto-docs/src/main/sphinx/functions/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ Operator Description
Mathematical Functions
----------------------

.. function:: abs(x) -> (same as input)
.. function:: abs(x) -> [same as input]

Returns the absolute value of ``x``.

.. function:: cbrt(x) -> double

Returns the cube root of ``x``.

.. function:: ceil(x) -> (same as input)
.. function:: ceil(x) -> [same as input]

This is an alias for :func:`ceiling`.

.. function:: ceiling(x) -> (same as input)
.. function:: ceiling(x) -> [same as input]

Returns ``x`` rounded up to the nearest integer.

Expand All @@ -42,7 +42,7 @@ Mathematical Functions

Returns Euler's number raised to the power of ``x``.

.. function:: floor(x) -> (same as input)
.. function:: floor(x) -> [same as input]

Returns ``x`` rounded down to the nearest integer.

Expand All @@ -62,7 +62,7 @@ Mathematical Functions

Returns the base ``b`` logarithm of ``x``.

.. function:: mod(n, m) -> (same as input)
.. function:: mod(n, m) -> [same as input]

Returns the modulus (remainder) of ``n`` divided by ``m``.

Expand All @@ -74,11 +74,11 @@ Mathematical Functions

Returns ``x`` raised to the power of ``p``.

.. function:: round(x) -> (same as input)
.. function:: round(x) -> [same as input]

Returns ``x`` rounded to the nearest integer.

.. function:: round(x, d) -> (same as input)
.. function:: round(x, d) -> [same as input]

Returns ``x`` rounded to ``d`` decimal places.

Expand Down

0 comments on commit 68b8b3e

Please sign in to comment.