Skip to content

Commit 2c24f44

Browse files
authored
docs: update clone (postcss#277)
1 parent 66b5152 commit 2c24f44

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

API.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,13 @@ if (node.type === 'id') {
278278
}
279279
```
280280

281-
### `node.clone()`
281+
### `node.clone([opts])`
282282

283283
Returns a copy of a node, detached from any parent containers that the
284284
original might have had.
285285

286286
```js
287-
const cloned = parser.id({value: 'search'});
288-
String(cloned);
289-
290-
// => #search
287+
const cloned = node.clone();
291288
```
292289

293290
### `node.isAtPosition(line, column)`

0 commit comments

Comments
 (0)