doc: typo

This commit is contained in:
skypjack
2025-09-12 14:38:58 +02:00
parent 5497291c29
commit 94cd89a72a

View File

@@ -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