From 5ed1c6132a1ec454db0ff1b0113a992dbfb45d1d Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 4 Jan 2019 13:22:43 +0000 Subject: [PATCH] Minor grammar and consistency fixes Change-Id: I7123d1b11efe4275467617fb8602eb9d9d52956f Reviewed-on: https://dart-review.googlesource.com/c/88290 Reviewed-by: Lasse R.H. Nielsen Commit-Queue: Paul Berry --- docs/language/dartLangSpec.tex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/language/dartLangSpec.tex b/docs/language/dartLangSpec.tex index eeeb6f611ec..27a02750551 100644 --- a/docs/language/dartLangSpec.tex +++ b/docs/language/dartLangSpec.tex @@ -6507,10 +6507,9 @@ A \IndexCustom{map literal}{literal!map} denotes a map object. \end{grammar} \LMHash{}% -A \synt{setOrMapLiteral} $e$ is either set literal (\ref {sets}) or a map literal, +A \synt{setOrMapLiteral} $e$ is either a set literal (\ref {sets}) or a map literal, determined by the type parameters or static context type. -If the literal expression has exactly one type argument, -then $e$ is a set literal. +If $e$ has exactly one type argument, then it is a set literal. If $e$ has two type arguments, then it is a map literal. If $e$ has three or more type arguments, it is a compile-time error. If $e$ has \emph{no} type arguments,