Skip to content

Commit

Permalink
Correct typo in comment
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Klee <[email protected]>
  • Loading branch information
JakeQZ and oliverklee committed Jan 28, 2025
1 parent e70a55f commit 148f265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private function shouldRenderInModernSyntax(): bool
$hasNumber = false;
foreach ($this->aComponents as $key => $value) {
if ($key === 'a') {
// ALpha can have units that don't match those of the RGB components in the "legacy" syntax.
// Alpha can have units that don't match those of the RGB components in the "legacy" syntax.
// So it is not necessary to check it. It's also always last, hence `break` rather than `continue`.
break;
}
Expand Down

0 comments on commit 148f265

Please sign in to comment.