Skip to content

Commit

Permalink
docs(computed): fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Oct 30, 2023
1 parent dbd8567 commit 3cc8aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/docs/utilities/Signals/computed.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const count = signal(1);

const result = extendedComputed<number>((previousValue) => {
// only compute when multiplier is even
if (multiplier() & (2 === 0)) {
if (multiplier() % 2 === 0) {
return count() * multiplier();
}
return previousValue;
Expand Down

0 comments on commit 3cc8aa6

Please sign in to comment.