# HG changeset patch # User jbe # Date 1408931460 -7200 # Node ID 1a0ce77d9e4b03d947b2f4aee9e8e6146b5063c4 # Parent a862f3246b48f42a97db3e30ca3b55e095aa26b4 Removed (wrong) example in README diff -r a862f3246b48 -r 1a0ce77d9e4b README --- a/README Mon Aug 25 03:44:51 2014 +0200 +++ b/README Mon Aug 25 03:51:00 2014 +0200 @@ -111,16 +111,8 @@ (as previously shown). Where desired, it is also possible to use metamethods to customize iteration -behavior. Consider: - - function process_row(database_row) - -- some function - end - local result = sql_query("SELECT * FROM actor") - process_row(result) -- without writing :rows() or similar - -This extension, however, doesn't respect the ``__len`` metamethod due to the -following reasons: +behavior. This extension, however, doesn't respect the ``__len`` metamethod due +to the following reasons: * An efficient implementation where ``for i, v in ipairs(tbl) do ... end`` does neither create a closure nor repeatedly evaluate ``#tbl`` seems to be