diff options
author | laurentlb <laurentlb@google.com> | 2017-09-06 20:45:44 +0200 |
---|---|---|
committer | Yun Peng <pcloudy@google.com> | 2017-09-07 09:57:33 +0200 |
commit | 35e0c2d716de87ce746b87098b92d81840255495 (patch) | |
tree | d7905868291a7fea04f1f2a096877bd6436bf7f0 /site | |
parent | c31f6968764ea798d9ca2e190c676c2c3f7735bc (diff) |
Forbid duplicate keys in dictionary literals
RELNOTES:
When using the dictionary literal syntax, it is now an error to have
duplicated keys (e.g. {'ab': 3, 'ab': 5}).
PiperOrigin-RevId: 167750614
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/skylark/backward-compatibility.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md index 9cd120aedc..f40fbde841 100644 --- a/site/docs/skylark/backward-compatibility.md +++ b/site/docs/skylark/backward-compatibility.md @@ -219,7 +219,7 @@ If you really want to override a value, use a separate statement: `mydict["a"] = 4`. * Flag: `--incompatible_dict_literal_has_no_duplicates` -* Default: `false` +* Default: `true` ## Checked arithmetic |