From 107298745d9e1e118e2f745957cb46ab379fa343 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Tue, 11 Apr 2023 16:57:05 -0600 Subject: [PATCH] Fix docs --- boa_engine/src/context/mod.rs | 2 +- boa_engine/src/object/builtins/jsfunction.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/boa_engine/src/context/mod.rs b/boa_engine/src/context/mod.rs index dfa7bcecf5f..452d7344fc9 100644 --- a/boa_engine/src/context/mod.rs +++ b/boa_engine/src/context/mod.rs @@ -587,7 +587,7 @@ impl std::fmt::Debug for ContextBuilder<'_, '_, '_> { impl<'icu, 'hooks, 'queue> ContextBuilder<'icu, 'hooks, 'queue> { /// Creates a new [`ContextBuilder`] with a default empty [`Interner`] - /// and a default [`BoaProvider`] if the `intl` feature is enabled. + /// and a default `BoaProvider` if the `intl` feature is enabled. #[must_use] pub fn new() -> Self { Self::default() diff --git a/boa_engine/src/object/builtins/jsfunction.rs b/boa_engine/src/object/builtins/jsfunction.rs index 022cb94d490..522242acc69 100644 --- a/boa_engine/src/object/builtins/jsfunction.rs +++ b/boa_engine/src/object/builtins/jsfunction.rs @@ -25,6 +25,8 @@ impl JsFunction { /// Creates a new, empty intrinsic function object with only its function internal methods set. /// /// Mainly used to initialize objects before a [`Context`] is available to do so. + /// + /// [`Context`]: crate::Context pub(crate) fn empty_intrinsic_function(constructor: bool) -> Self { Self { inner: JsObject::from_object_and_vtable(