From d897d6e6201850ffd21ec0cbfe6a49de136bbd99 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sun, 4 Feb 2024 21:39:45 -0700 Subject: [PATCH] Fix a few typos in error docs (#11709) # Objective I noticed a few typos in these docs recently. ## Solution Minimal fixes so that these sentences make sense. --- errors/B0001.md | 4 ++-- errors/B0002.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/errors/B0001.md b/errors/B0001.md index abdf8e356b..16486cea77 100644 --- a/errors/B0001.md +++ b/errors/B0001.md @@ -1,6 +1,6 @@ # B0001 -To keep [Rust rules on references](https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#the-rules-of-references) (either one mutable reference or any number of immutable references) on a component, it is not possible to have two queries on the same component when one request mutable access to it in the same system. +To keep [Rust rules on references](https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#the-rules-of-references) (either one mutable reference or any number of immutable references) on a component, it is not possible to have two queries on the same component when one requests mutable access to it in the same system. Erroneous code example: @@ -62,7 +62,7 @@ fn main() { Solution #2: use a `ParamSet` -A `ParamSet` will let you have conflicting queries as a parameter, but you will still be responsible of not using them at the same time in your system. +A `ParamSet` will let you have conflicting queries as a parameter, but you will still be responsible for not using them at the same time in your system. ```rust,no_run use bevy::prelude::*; diff --git a/errors/B0002.md b/errors/B0002.md index cfba45ba32..031c28dfba 100644 --- a/errors/B0002.md +++ b/errors/B0002.md @@ -22,9 +22,9 @@ fn main() { } ``` -This will panic, as it's not possible to have both a mutable and an immutable resource on `State` at the same time. +This will panic, as it's not possible to have both a mutable and an immutable resource on `Assets` at the same time. -As a mutable resource already provide access to the current resource value, you can remove the immutable resource. +As a mutable resource already provides access to the current resource value, so you can remove the immutable resource. ```rust,no_run use bevy::prelude::*;