From 2be00d3f1ef26342e52da720153e60b5964a1e1a Mon Sep 17 00:00:00 2001 From: Dolan Date: Tue, 14 Mar 2017 10:38:05 +0000 Subject: [PATCH] corrected example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31104a59ec..6397b4c4aa 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ var doc = new docx.Document(); // Add some content in the document var paragraph = new docx.Paragraph("Some cool text here."); // Add more text into the paragraph if you wish -paragraph.addText(new docx.TextRun('Lorem Ipsum Foo Bar')); +paragraph.addRun(new docx.TextRun('Lorem Ipsum Foo Bar')); doc.addParagraph(paragraph); // Used to export the file into a .docx file