Subject: | Private method flush of XML::Twig::Elt used in code example in docs |
Date: | Tue, 8 Nov 2011 18:49:58 +0100 |
To: | bug-XML-Twig [...] rt.cpan.org |
From: | Zsbán Ambrus <ambrus [...] math.bme.hu> |
This is a bug report about an incorrect code example in the
documentation of XML::Twig.
In the documentation for the object methods of XML::Twig::Elt, you say
that flush is a private method, and "always flush the twig, not an
element". However, in the section "Processing an XML document chunk
by chunk" you have a code example that seems to use this private
method. It says
$section->flush; # outputs the section and frees memory
where $section is apparently the element the handler has triggered
for. Please fix the example to use the documented interface only.
This is about the documentation from XML-Twig version 3.39.
Ambrus