From 13b8f360cb35e2cf797a9cfd9f6c71613b736e99 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Thu, 21 Oct 2021 22:43:30 -0400 Subject: [PATCH] Fix some rustdoc warnings and a typo in FLOAT's docs Unfortunately, I can't fix the 2 remaining warnings. --- codegen/src/lib.rs | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index d985757b..a0005864 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -184,7 +184,7 @@ pub fn export_module( proc_macro::TokenStream::from(tokens) } -/// Macro to generate a Rhai `Module` from a _plugin module_ defined via [`#[export_module]`][export_module]. +/// Macro to generate a Rhai `Module` from a _plugin module_ defined via [`#[export_module]`][macro@export_module]. /// /// # Usage /// @@ -265,7 +265,7 @@ pub fn combine_with_exported_module(args: proc_macro::TokenStream) -> proc_macro } } -/// Macro to register a _plugin function_ (defined via [`#[export_fn]`][export_fn]) into an `Engine`. +/// Macro to register a _plugin function_ (defined via [`#[export_fn]`][macro@export_fn]) into an `Engine`. /// /// # Usage /// diff --git a/src/lib.rs b/src/lib.rs index bb8e1ee9..1595116c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,7 +115,7 @@ pub type INT = i32; /// The system floating-point type. It is defined as [`f64`]. /// Not available under `no_float`. /// -/// If the `f32_float` feature is enabled, this will be [`i32`] instead. +/// If the `f32_float` feature is enabled, this will be [`f32`] instead. #[cfg(not(feature = "no_float"))] #[cfg(not(feature = "f32_float"))] pub type FLOAT = f64;