doc: typo
This commit is contained in:
@@ -2156,13 +2156,13 @@ It means that views and groups generated by a const registry also propagate the
|
||||
constness to the types involved. As an example:
|
||||
|
||||
```cpp
|
||||
entt::view<const position, const velocity> view = std::as_const(registry).view<const position, const velocity>();
|
||||
entt::view<entt::get_t<const position, const velocity>> view = std::as_const(registry).view<const position, const velocity>();
|
||||
```
|
||||
|
||||
Consider the following definition for a non-const view instead:
|
||||
|
||||
```cpp
|
||||
entt::view<position, const velocity> view = registry.view<position, const velocity>();
|
||||
entt::view<entt::get_t<position, const velocity>> view = registry.view<position, const velocity>();
|
||||
```
|
||||
|
||||
In the example above, `view` is used to access either read-only or writable
|
||||
|
||||
Reference in New Issue
Block a user