Skip to content

Commit

Permalink
fix: fix the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fefit committed Apr 17, 2024
1 parent 60d5bb4 commit e0996ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ After version v0.5.0, visdom add some feature flags to support conditional compi

| Feature | Description | API | Config |
| :---------- | :---------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------- |
| `destroy` | When you don't need remove or clear the elements, you can ignore this feature flag. | `.remove()` `.empty()` (IElementTrait) `remove_child()` | `visdom = { version = xxx, features = ["destory"]}` |
| `destroy` | When you don't need remove or clear the elements, you can ignore this feature flag. | `.remove()` `.empty()` (IElementTrait) `remove_child()` | `visdom = { version = xxx, features = ["destroy"]}` |
| `insertion` | When you don't need mutation the DOM, you can ignore this feature flag. | `append()` `append_to()` `prepend()` `prepend_to()` `insert_after()` `after()` `insert_before()` `before()` `replace_with()` | `visdom = { version = xxx, features = ["insertion"]}` |
| `text` | When you don't need mutation the TextNode, you can ignore this feature flag. | `.texts()` `.texts_by()` `texts_by_rec()` | `visdom = { version = xxx, features = ["text"]}` |
| `full` | When you need all the API above, you can open this feature flag. | - | `visdom = { version = xxx, features = ["full"]}` |
Expand Down
2 changes: 1 addition & 1 deletion src/mesdoc/interface/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3577,7 +3577,7 @@ cfg_feat_mutation! {
}

impl<'a> Elements<'a> {
// when feature 'destory' or 'insertion' is open
// when feature 'destroy' or 'insertion' is open
cfg_feat_mutation! {
/// Remove the Elements set.
///
Expand Down

0 comments on commit e0996ac

Please sign in to comment.