Skip to content

Commit 7e75bc6

Browse files
authored
Merge pull request #4001 from chenglou/tweak
Tweak grammar
2 parents 18d56c2 + 46f3efa commit 7e75bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/syntax/ast_external_process.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ let parse_external_attributes
331331
| "bs.new" -> {st with new_name = name_from_payload_or_prim ~loc payload}
332332
| "bs.set_index" ->
333333
if String.length prim_name_check <> 0 then
334-
Location.raise_errorf ~loc "[@@bs.set_index] expect external names to be empty string";
334+
Location.raise_errorf ~loc "[@@bs.set_index] this particular external's name needs to be a placeholder empty string";
335335
{st with set_index = true}
336336
| "bs.get_index"->
337337
if String.length prim_name_check <> 0 then
338-
Location.raise_errorf ~loc "[@@bs.get_index] expect external names to be empty string";
338+
Location.raise_errorf ~loc "[@@bs.get_index] this particular external's name needs to be a placeholder empty string";
339339
{st with get_index = true}
340340
| "bs.obj" -> {st with mk_obj = true}
341341
| "bs.return" ->

0 commit comments

Comments
 (0)