From bb145c19c1245b49dfb6ee53bb764969380b74fe Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Sat, 4 Nov 2017 01:36:44 -0200 Subject: [PATCH] Rephrase comment --- src/printer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/printer.js b/src/printer.js index b59fbb4d4..49a8f4cbc 100644 --- a/src/printer.js +++ b/src/printer.js @@ -550,10 +550,8 @@ function genericPrintNoParens(path, options, print, args) { // if the arrow function is expanded as last argument, we are adding a // level of indentation and need to add a softline to align the closing ) - // with the opening (. - // or if the arrow functino is inside a JSXExpression (e.g. an attribute) - // we should align the expression's closing } with the line with the - // opening {. + // with the opening (, or if it's inside a JSXExpression (e.g. an attribute) + // we should align the expression's closing } with the line with the opening {. const shouldAddSoftLine = (args && args.expandLastArg) || path.getParentNode().type === "JSXExpressionContainer";