Skip to content

Commit

Permalink
Update wide-gamut-framework.md (#11525)
Browse files Browse the repository at this point in the history
This fixes a typo in one of the code snippets: the integer `_red`
component needs to be *divided by* 255.0 to get `r`, not *multiplied*.
  • Loading branch information
olof-dev authored Jan 1, 2025
1 parent 605f81f commit 95f5d7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Foo implements Color {
int _red;
@override
double get r => _red * 255.0;
double get r => _red / 255.0;
}
```

Expand Down

0 comments on commit 95f5d7b

Please sign in to comment.