Skip to content

Commit 0806448

Browse files
authored
Update recipes.rst (#2367)
1 parent aac3a60 commit 0806448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Use ``php://output`` as the filename.
2929
.. code-block:: php
3030
3131
$phpWord = new \PhpOffice\PhpWord\PhpWord();
32-
$section = $phpWord->createSection();
32+
$section = $phpWord->addSection();
3333
$section->addText('Hello World!');
3434
$file = 'HelloWorld.docx';
3535
header("Content-Description: File Transfer");

0 commit comments

Comments
 (0)