Ver Fonte

doc: fixed typo

Michele Caini há 4 anos atrás
pai
commit
6867760cc4
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 2 2
      src/entt/entity/sparse_set.hpp
  2. 2 2
      src/entt/entity/storage.hpp

+ 2 - 2
src/entt/entity/sparse_set.hpp

@@ -309,7 +309,7 @@ public:
     /**
     /**
      * @brief Constructs an empty container with the given policy and allocator.
      * @brief Constructs an empty container with the given policy and allocator.
      * @param pol Type of deletion policy.
      * @param pol Type of deletion policy.
-     * @param alloc Allocator to use (possibly default-constructed).
+     * @param allocator Allocator to use (possibly default-constructed).
      */
      */
     explicit basic_sparse_set(deletion_policy pol, const allocator_type &allocator = {})
     explicit basic_sparse_set(deletion_policy pol, const allocator_type &allocator = {})
         : reserved{allocator, 0u},
         : reserved{allocator, 0u},
@@ -323,7 +323,7 @@ public:
 
 
     /**
     /**
      * @brief Constructs an empty container with the given allocator.
      * @brief Constructs an empty container with the given allocator.
-     * @param alloc Allocator to use (possibly default-constructed).
+     * @param allocator Allocator to use (possibly default-constructed).
      */
      */
     explicit basic_sparse_set(const allocator_type &allocator = {})
     explicit basic_sparse_set(const allocator_type &allocator = {})
         : basic_sparse_set{deletion_policy::swap_and_pop, allocator}
         : basic_sparse_set{deletion_policy::swap_and_pop, allocator}

+ 2 - 2
src/entt/entity/storage.hpp

@@ -326,7 +326,7 @@ public:
 
 
     /**
     /**
      * @brief Default constructor.
      * @brief Default constructor.
-     * @param alloc Allocator to use (possibly default-constructed).
+     * @param allocator Allocator to use (possibly default-constructed).
      */
      */
     explicit basic_storage_impl(const allocator_type &allocator = {})
     explicit basic_storage_impl(const allocator_type &allocator = {})
         : underlying_type{deletion_policy{comp_traits::in_place_delete::value}, allocator},
         : underlying_type{deletion_policy{comp_traits::in_place_delete::value}, allocator},
@@ -733,7 +733,7 @@ public:
 
 
     /**
     /**
      * @brief Default constructor.
      * @brief Default constructor.
-     * @param alloc Allocator to use (possibly default-constructed).
+     * @param allocator Allocator to use (possibly default-constructed).
      */
      */
     explicit basic_storage_impl(const allocator_type &allocator = {})
     explicit basic_storage_impl(const allocator_type &allocator = {})
         : underlying_type{deletion_policy{comp_traits::in_place_delete::value}, allocator}
         : underlying_type{deletion_policy{comp_traits::in_place_delete::value}, allocator}