From 0ff839be1d8525173c824fbe4b41fba4eb644985 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Fri, 27 Jan 2023 17:49:11 +0000 Subject: [PATCH] Fix formatting in `Name` docs (#7384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective There's no period at the end of the first line of the `Name` documentation, and this messes up the grammar of the summary rustdoc creates: ``` ↓ Component used to identify an entity. Stores a hash for faster comparisons The hash is eagerly re-computed upon each update to the name. ``` ## Solution I added it. --- crates/bevy_core/src/name.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_core/src/name.rs b/crates/bevy_core/src/name.rs index f7fad0ca18..37b0e951c6 100644 --- a/crates/bevy_core/src/name.rs +++ b/crates/bevy_core/src/name.rs @@ -8,7 +8,8 @@ use std::{ ops::Deref, }; -/// Component used to identify an entity. Stores a hash for faster comparisons +/// Component used to identify an entity. Stores a hash for faster comparisons. +/// /// The hash is eagerly re-computed upon each update to the name. /// /// [`Name`] should not be treated as a globally unique identifier for entities,