Fix UiCameraConfig doc (link to the Camera page) (#6969)

The Camera link in the UiCameraConfig was not rendered properly by the documentation.

# Objective

- In the UiCameraConfig page (https://docs.rs/bevy/latest/bevy/prelude/struct.UiCameraConfig.html), a link to the Camera page (https://docs.rs/bevy/latest/bevy/render/camera/struct.Camera.html) is broken.

## Solution

- It seems that when using URL fragment specifiers, backtick should not be used. It might be an issue of rust itself. Replacing the URL fragment specifier `[`Camera`]: bevy_render:📷:Camera` with `[Camera]: bevy_render:📷:Camera` solves this.
This commit is contained in:
Benoît Vermont 2022-12-20 23:32:04 +00:00
parent c38659ddea
commit 150a3572bd

View file

@ -11,7 +11,6 @@ use bevy_render::extract_component::ExtractComponent;
/// When a [`Camera`] doesn't have the [`UiCameraConfig`] component, /// When a [`Camera`] doesn't have the [`UiCameraConfig`] component,
/// it will display the UI by default. /// it will display the UI by default.
/// ///
/// [`Camera`]: bevy_render::camera::Camera
#[derive(Component, Clone)] #[derive(Component, Clone)]
pub struct UiCameraConfig { pub struct UiCameraConfig {
/// Whether to output UI to this camera view. /// Whether to output UI to this camera view.