diff --git a/README.md b/README.md index 84d362a..5186e61 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ See: examples/properties.php
$idg->beginBlock(); $idg->text('Text in block.') ->setMargin(10, 20, 20, 20); -$idg->endElement(); +$idg->endBlock(); $idg->beginBlock()->setStaticHeight(function(\Idg\Elements\Element $element) { return $element->getPrevSibling()->getHeight(); });