From 03655d215d32428b1fa628e4855ae24e5f1f0ec3 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu, 25 Jun 2015 10:44:03 -0400
Subject: [PATCH] Docs: fix claim that to_char('FM') removes trailing zeroes.

Of course, what it removes is leading zeroes.  Seems to have been a thinko
in commit ffe92d15d53625d5ae0c23f4e1984ed43614a33d.  Noted by Hubert Depesz
Lubaczewski.
---
 doc/src/sgml/func.sgml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 85a6f394f01..b454f836854 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -5480,7 +5480,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       <tbody>
        <row>
         <entry><literal>FM</literal> prefix</entry>
-        <entry>fill mode (suppress padding blanks and trailing zeroes)</entry>
+        <entry>fill mode (suppress leading zeroes and padding blanks)</entry>
         <entry><literal>FMMonth</literal></entry>
        </row>
        <row>
@@ -5865,7 +5865,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       <tbody>
        <row>
         <entry><literal>FM</literal> prefix</entry>
-        <entry>fill mode (suppress padding blanks and trailing zeroes)</entry>
+        <entry>fill mode (suppress leading zeroes and padding blanks)</entry>
         <entry><literal>FM9999</literal></entry>
        </row>
        <row>
-- 
GitLab