Skip to content

Commit b2743d6

Browse files
authored
Correct JavaScript example in API documentation
Fix syntax errors in JavaScript code example.
1 parent dbbca9c commit b2743d6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docs/API.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ Transform CSS at build time to generate native CSS where possible.
150150
```javascript
151151
import { buildTimeTransform } from "css-if-polyfill";
152152

153-
const result = buildTimeTransform(
154-
`
153+
const result = buildTimeTransform(`
155154
.card {
156155
background: if(media(min-width: 768px): blue; else: gray);
157156
font-size: if(style(--large): 24px; else: 16px);
158-
}
159-
`,
157+
}`,
160158
{ minify: true }
161159
);
162160

0 commit comments

Comments
 (0)