From 097c57fa5670547eea446554e1b6ad4e143e5ff6 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sat, 5 Nov 2022 09:25:36 +0100 Subject: [PATCH] Update doc comments --- crates/fj/src/models/context.rs | 2 -- crates/fj/src/models/host.rs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fj/src/models/context.rs b/crates/fj/src/models/context.rs index c6cc14558..332913d96 100644 --- a/crates/fj/src/models/context.rs +++ b/crates/fj/src/models/context.rs @@ -1,7 +1,5 @@ /// Contextual information passed to a [`Model`][crate::models::Model] when it /// is being initialized. -/// -/// Check out the [`ContextExt`] trait for some helper methods. pub trait Context { /// Get an argument that was passed to this model. fn get_argument(&self, name: &str) -> Option<&str>; diff --git a/crates/fj/src/models/host.rs b/crates/fj/src/models/host.rs index cf9fb4556..9af499dc1 100644 --- a/crates/fj/src/models/host.rs +++ b/crates/fj/src/models/host.rs @@ -11,6 +11,8 @@ pub trait Host { } /// Extension methods to augment the [`Host`] API. +/// +/// The purpose of this trait is to keep [`Host`] object-safe. pub trait HostExt { /// Register a model with the Fornjot runtime. fn register_model(&mut self, model: M)