Plpgsql doc cleanup.
authorBruce Momjian <bruce@momjian.us>
Wed, 28 Nov 2007 20:13:06 +0000 (20:13 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 28 Nov 2007 20:13:06 +0000 (20:13 +0000)
Guillaume Lelarge

doc/src/sgml/plpgsql.sgml

index 1fc245b1905a0ea927f93a01ee2c249e6960bc4d..74ec281503a3ff4f203656320c905dfdca7fa511 100644 (file)
 
     <para>
      <application>PL/pgSQL</> functions can also be declared to return
-     a <quote>set</>, or table, of any data type they can return a single
-     instance of.  Such a function generates its output by executing
-     <command>RETURN NEXT</> for each desired element of the result
+     a <quote>set</>, or table.  Such a function generates its output by
+     executing <command>RETURN NEXT</> for each desired element of the result
      set, or by using <command>RETURN QUERY</> to output the result of
      evaluating a query.
     </para>
@@ -1428,7 +1427,7 @@ BEGIN
     WHERE fooid &gt; 0
     LOOP
         -- can do some processing here
-        RETURN NEXT r; -- return next row of SELECT
+        RETURN NEXT r; -- return current row of SELECT
     END LOOP;
     RETURN;
 END