Browse Source

doc: typo

skypjack 11 tháng trước cách đây
mục cha
commit
94cd89a72a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      docs/md/entity.md

+ 2 - 2
docs/md/entity.md

@@ -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:
 constness to the types involved. As an example:
 
 
 ```cpp
 ```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:
 Consider the following definition for a non-const view instead:
 
 
 ```cpp
 ```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
 In the example above, `view` is used to access either read-only or writable