Skip to content

Commit

Permalink
Fix typos in the CSSNumericValue.sub() method example (#33616)
Browse files Browse the repository at this point in the history
Fix typos in the example code snippet
  • Loading branch information
Gigabyte5671 committed May 15, 2024
1 parent 2f8e24c commit 4dc759e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/api/cssnumericvalue/sub/index.md
Expand Up @@ -36,9 +36,9 @@ A {{domxref('CSSMathSum')}}

```js
let mathSum = CSS.px("23")
.sum(CSS.percent("4"))
.sum(CSS.cm("3"))
.sum(CSS.in("9"));
.sub(CSS.percent("4"))
.sub(CSS.cm("3"))
.sub(CSS.in("9"));
// Prints "calc(23px - 4% - 3cm - 9in)"
console.log(mathSum.toString());
```
Expand Down

0 comments on commit 4dc759e

Please sign in to comment.