diff --git a/README.md b/README.md index efc0808..1e46a47 100644 --- a/README.md +++ b/README.md @@ -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"]}` | diff --git a/src/mesdoc/interface/elements.rs b/src/mesdoc/interface/elements.rs index 093f567..b37d7df 100644 --- a/src/mesdoc/interface/elements.rs +++ b/src/mesdoc/interface/elements.rs @@ -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. ///