Skip to content

Commit 508a26e

Browse files
committed
Document the exponentiation operator as associating left to right.
Common mathematical convention is that exponentiation associates right to left. We aren't going to change the parser for this, but we could note it in the operator's description. (It's already noted in the operator precedence/associativity table, but users might not look there.) Per bug #13829 from Henrik Pauli.
1 parent 3479b79 commit 508a26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505

506506
<row>
507507
<entry> <literal>^</literal> </entry>
508-
<entry>exponentiation</entry>
508+
<entry>exponentiation (associates left to right)</entry>
509509
<entry><literal>2.0 ^ 3.0</literal></entry>
510510
<entry><literal>8</literal></entry>
511511
</row>

0 commit comments

Comments
 (0)