Skip to content

Commit 8c5f746

Browse files
Fix some lints in the new book (#2212)
1 parent ba9e929 commit 8c5f746

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

content/learn/book/storing-data/entities-components.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,3 @@ Over time, the Bevy community has converged on a few standard pieces of advice f
234234
[`Deref`]: https://doc.rust-lang.org/std/ops/trait.Deref.html
235235
[`DerefMut`]: https://doc.rust-lang.org/std/ops/trait.DerefMut.html
236236
[newtypes]: https://doc.rust-lang.org/rust-by-example/generics/new_types.html
237-
[struct update syntax]: https://doc.rust-lang.org/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax

content/learn/book/storing-data/queries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ while `&mut` is for mutable references, making it easy to remember the syntax on
123123
Let's take a look at how that might look in practice:
124124

125125
```rust,hide_lines=1-2
126+
# use bevy::prelude::*;
127+
#
126128
#[derive(Component)]
127129
struct Poisoned;
128130

content/learn/book/storing-data/world.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ insert_anchor_links = "right"
55
weight = 3
66
+++
77

8-
The [`World`] is a catch-all container for *stuff*.
8+
The [`World`] is a catch-all container for *stuff*.
99
Entities, components, resources, assets -- all of these exist within a world.
1010
It's where your data lives.
1111

1212
## The World as a Database
13+
1314
If you are familiar with SQL database terminology, you can think of a world as a database.
1415
Just like a database, a world contains several tables called **Archetypes**.
1516
Each [entity] is an entry within this database, stored as a row in on one of the archetype tables.
@@ -18,6 +19,7 @@ This allows archetype tables to be stored as dense arrays, containing only entit
1819
However, it also means that entities must be moved between tables when components are added or removed.
1920

2021
## Using the World
22+
2123
With a `&World` reference, you can read anything out of the ecs. And with a `&mut World`, you can write to it as well.
2224

2325
[entity]: /learn/book/storing-data/entities-components

0 commit comments

Comments
 (0)