diff --git a/crates/bevy_remote/src/builtin_methods.rs b/crates/bevy_remote/src/builtin_methods.rs index a36c2d92e8..91069aba5c 100644 --- a/crates/bevy_remote/src/builtin_methods.rs +++ b/crates/bevy_remote/src/builtin_methods.rs @@ -50,7 +50,7 @@ pub const BRP_REPARENT_METHOD: &str = "bevy/reparent"; /// The method path for a `bevy/list` request. pub const BRP_LIST_METHOD: &str = "bevy/list"; -/// The method path for a `bevy/reparent` request. +/// The method path for a `bevy/mutate_component` request. pub const BRP_MUTATE_COMPONENT_METHOD: &str = "bevy/mutate_component"; /// The method path for a `bevy/get+watch` request. @@ -200,7 +200,7 @@ pub struct BrpListParams { pub entity: Entity, } -/// `bevy/mutate`: +/// `bevy/mutate_component`: /// /// The server responds with a null. #[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] @@ -208,7 +208,7 @@ pub struct BrpMutateParams { /// The entity of the component to mutate. pub entity: Entity, - /// The [full path] of component to mutate. + /// The [full path] of the component to mutate. /// /// [full path]: bevy_reflect::TypePath::type_path pub component: String, @@ -986,7 +986,7 @@ fn export_type(reg: &TypeRegistration) -> (String, JsonSchemaBevyType) { let short_path = binding.short_path(); let type_path = binding.path(); let mut typed_schema = JsonSchemaBevyType { - reflect_types: get_registrered_reflect_types(reg), + reflect_types: get_registered_reflect_types(reg), short_path: short_path.to_owned(), type_path: type_path.to_owned(), crate_name: binding.crate_name().map(str::to_owned), @@ -1111,7 +1111,7 @@ fn export_type(reg: &TypeRegistration) -> (String, JsonSchemaBevyType) { (t.type_path().to_owned(), typed_schema) } -fn get_registrered_reflect_types(reg: &TypeRegistration) -> Vec { +fn get_registered_reflect_types(reg: &TypeRegistration) -> Vec { // Vec could be moved to allow registering more types by game maker. let registered_reflect_types: [(TypeId, &str); 5] = [ { (TypeId::of::(), "Component") }, diff --git a/crates/bevy_remote/src/lib.rs b/crates/bevy_remote/src/lib.rs index bbb8e18cc3..214d6655ff 100644 --- a/crates/bevy_remote/src/lib.rs +++ b/crates/bevy_remote/src/lib.rs @@ -199,7 +199,7 @@ //! Mutate a field in a component. //! //! `params`: -//! - `entity`: The ID of the entity to with the component to mutate. +//! - `entity`: The ID of the entity with the component to mutate. //! - `component`: The component's [fully-qualified type name]. //! - `path`: The path of the field within the component. See //! [`GetPath`](bevy_reflect::GetPath#syntax) for more information on formatting this string.