From 5e43ff9ac2f1ecce7067cc13d255cf5709f03da7 Mon Sep 17 00:00:00 2001 From: Zach Gawlik Date: Thu, 25 Jan 2018 01:55:58 -0500 Subject: [PATCH] Fix malapropism in commands docs (#3820) --- commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.md b/commands.md index c7fa6912b..3df8381d3 100644 --- a/commands.md +++ b/commands.md @@ -22,7 +22,7 @@ declare function group(doc: Doc, opts?: GroupOpts): Doc; Mark a group of items which the printer should try to fit on one line. This is the basic command to tell the printer when to break. Groups are usually nested, and the printer will try to fit everything on one line, but if it doesn't fit it will break the outermost group first and try again. It will continue breaking groups until everything fits (or there are no more groups to break). -A document can force parent groups to break by including `breakParent` (see below). A hard and literal line automatically include this so they always break parent groups. Breaks are propagated to all parent groups, so if a deeply nested expression has a hard break, everything with break. This only matters for "hard" breaks, i.e. newlines that are printed no matter what and can be statically analyzed. +A document can force parent groups to break by including `breakParent` (see below). A hard and literal line automatically include this so they always break parent groups. Breaks are propagated to all parent groups, so if a deeply nested expression has a hard break, everything will break. This only matters for "hard" breaks, i.e. newlines that are printed no matter what and can be statically analyzed. For example, an array will try to fit on one line: