Skip to content

Commit 380b795

Browse files
committed
Rollup merge of rust-lang#45118 - johnthagen:fix-section-key-name, r=alexcrichton
Fix variable name reference As best I can tell, this was a typo due to how similar it looks to the function above it. PyCharm found this as a unbound local variable.
2 parents 743ff73 + 430e875 commit 380b795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def configure_section(lines, config):
378378
for section_key in config:
379379
section_config = config[section_key]
380380
if not section_key in sections:
381-
raise RuntimeError("config key {} not in sections".format(key))
381+
raise RuntimeError("config key {} not in sections".format(section_key))
382382

383383
if section_key == 'target':
384384
for target in section_config:

0 commit comments

Comments
 (0)