widget_base/context: improve documentation text `struct Context`
@@ -15,7 +15,11 @@ use crate::{
use super::WidgetContainer;
-/// The `Context` is provides access for the states to objects they could work with.
+/// The `Context` structure provides access to widget entities handled
+/// via the underlying EntityComponentSystem. Functions are offered to
+/// handle the position of an entity in the tree, its associated
+/// render context and theme. You can emit adaptions to the state of
+/// an entity.
pub struct Context<'a> {
pub(crate) ecm: &'a mut EntityComponentManager<Tree, StringComponentStore>,
entity: Entity,
@@ -522,8 +526,9 @@ impl<'a> Context<'a> {
// -- Helpers --
-/// Finds th parent of the `target_child`. The parent of the `target_child` must be the given `parent` or
-/// a child of the given parent.
+/// Finds the parent of the `target_child`. The parent of the
+/// `target_child` must be the given `parent` or a child of the given
+/// parent.
pub fn find_parent(tree: &Tree, target_child: Entity, parent: Entity) -> Option<Entity> {
if tree.children[&parent].contains(&target_child) {
return Some(parent);
