Fix syntax errors in ORDER BY docs (GH#7)
Joshua Keroes [Fri, 15 Jul 2016 21:34:48 +0000 (14:34 -0700)]
Missing some } characters. Had to reformat the table to make them fit.

Read under -w

Changes
lib/SQL/Abstract.pm

diff --git a/Changes b/Changes
index 224fac4..7f25a87 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 Revision history for SQL::Abstract
 
     - Add explicit dependency on Sub::Quote (GH#8)
+    - Fix syntax errors in ORDER BY docs (GH#7)
 
 revision 1.81_01  2017-02-28
 ----------------------------
index 5dc55c7..596c589 100644 (file)
@@ -2908,33 +2908,33 @@ column name), a hashref of C<< { -desc => 'col' } >> or C<< { -asc => 'col' }
 >>, a scalarref, an arrayref-ref, or an arrayref of any of the previous
 forms. Examples:
 
-               Given            |         Will Generate
+               Given              |         Will Generate
     ---------------------------------------------------------------
-                                |
-    'colA'                      | ORDER BY colA
-                                |
-    [qw/colA colB/]             | ORDER BY colA, colB
-                                |
-    {-asc  => 'colA'}           | ORDER BY colA ASC
-                                |
-    {-desc => 'colB'}           | ORDER BY colB DESC
-                                |
-    ['colA', {-asc => 'colB'}]  | ORDER BY colA, colB ASC
-                                |
-    { -asc => [qw/colA colB/] } | ORDER BY colA ASC, colB ASC
-                                |
-    \'colA DESC'                | ORDER BY colA DESC
-                                |
-    \[ 'FUNC(colA, ?)', $x ]    | ORDER BY FUNC(colA, ?)
-                                |   /* ...with $x bound to ? */
-                                |
-    [                           |
-      { -asc => 'colA' },       | ORDER BY colA ASC, colB DESC,
-      { -desc => [qw/colB/],    |          colC ASC, colD ASC,
-      { -asc => [qw/colC colD/],|          colE DESC, FUNC(colF, ?)
-      \'colE DESC',             |   /* ...with $x bound to ? */
-      \[ 'FUNC(colF, ?)', $x ], |
-    ]                           |
+                                  |
+    'colA'                        | ORDER BY colA
+                                  |
+    [qw/colA colB/]               | ORDER BY colA, colB
+                                  |
+    {-asc  => 'colA'}             | ORDER BY colA ASC
+                                  |
+    {-desc => 'colB'}             | ORDER BY colB DESC
+                                  |
+    ['colA', {-asc => 'colB'}]    | ORDER BY colA, colB ASC
+                                  |
+    { -asc => [qw/colA colB/] }   | ORDER BY colA ASC, colB ASC
+                                  |
+    \'colA DESC'                  | ORDER BY colA DESC
+                                  |
+    \[ 'FUNC(colA, ?)', $x ]      | ORDER BY FUNC(colA, ?)
+                                  |   /* ...with $x bound to ? */
+                                  |
+    [                             |
+      { -asc => 'colA' },         | ORDER BY colA ASC, colB DESC,
+      { -desc => [qw/colB/] },    |          colC ASC, colD ASC,
+      { -asc => [qw/colC colD/] },|          colE DESC, FUNC(colF, ?)
+      \'colE DESC',               |   /* ...with $x bound to ? */
+      \[ 'FUNC(colF, ?)', $x ],   |
+    ]                             |
     ===============================================================