From 32ceaa415eb6f9830e478b4a6355d3eb7b3f3553 Mon Sep 17 00:00:00 2001 From: Khalil Mansouri Date: Wed, 24 Feb 2021 13:30:40 +0100 Subject: [PATCH] Fix documentation typo --- docs/usage/bullet-points.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/usage/bullet-points.md b/docs/usage/bullet-points.md index 7ffcf6f241..159241b3b0 100644 --- a/docs/usage/bullet-points.md +++ b/docs/usage/bullet-points.md @@ -5,12 +5,21 @@ To make a bullet point, simply make a paragraph into a bullet point: ```ts -const text = new TextRun("Bullet points"); -const paragraph = new Paragraph({ - text: "Bullet points", - bullet: { - level: 0, //How deep you want the bullet to be - }, +doc.addSection({ + children: [ + new Paragraph({ + text: "Bullet points", + bullet: { + level: 0 //How deep you want the bullet to be + } + }), + new Paragraph({ + text: "Are awesome", + bullet: { + level: 0 + } + }) + ], }); ```