Skip to content

Commit

Permalink
Update example.gd
Browse files Browse the repository at this point in the history
Fix another spacing issue
  • Loading branch information
glaxxie committed Feb 28, 2024
1 parent 95231ca commit 5c3931c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/practice/resistor-color-trio/.meta/example.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ func color_code(colors):
var colors_code = ["black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"]

var units = {
1e9: "gigaohms",
1e6: "megaohms",
1e3: "kiloohms"
}
1e9: "gigaohms",
1e6: "megaohms",
1e3: "kiloohms"
}

var base_value = colors_code.find(colors[0]) * 10 + colors_code.find(colors[1])
var magnitude = 10 ** colors_code.find(colors[2])
Expand Down

0 comments on commit 5c3931c

Please sign in to comment.