summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/src/lib.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index 6d7fa1e..3080047 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -56,10 +56,7 @@ pub struct Engine
impl Engine
{
- /// Creates and initializes a new engine.
- ///
- /// # Errors
- /// Will return `Err` if window creation or window configuration fails.
+ /// Returns a new `Engine`.
#[must_use]
pub fn new() -> Self
{
@@ -107,10 +104,7 @@ impl Engine
self.world.add_extension(extension);
}
- /// Starts the engine.
- ///
- /// # Errors
- /// Will return `Err` if updating the window fails.
+ /// Emits the [`StartEvent`] event and then runs the event loop.
pub fn start(&self)
{
self.world.emit(StartEvent);