Skip to content

Commit d1fcec8

Browse files
lukashuebnerAzothAmmo
authored andcommitted
Fix some typos (spelling)
1 parent f3e31f3 commit d1fcec8

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

include/cereal/archives/xml.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ namespace cereal
136136
*/
137137
//! @{
138138

139-
//! Sets the precision used for floaing point numbers
139+
//! Sets the precision used for floating point numbers
140140
Options & precision( int value ){ itsPrecision = value; return * this; }
141141
//! Whether to indent each line of XML
142142
Options & indent( bool enable ){ itsIndent = enable; return *this; }

include/cereal/cereal.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ namespace cereal
176176
a serialization function. Classes with no data members are considered to be
177177
empty. Be warned that if this is enabled and you attempt to serialize an
178178
empty class with improperly formed serialize or load/save functions, no
179-
static error will occur - the error will propogate silently and your
179+
static error will occur - the error will propagate silently and your
180180
intended serialization functions may not be called. You can manually
181181
ensure that your classes that have custom serialization are correct
182182
by using the traits is_output_serializable and is_input_serializable
@@ -391,7 +391,7 @@ namespace cereal
391391
point to the same data.
392392
393393
@internal
394-
@param sharedPointer The shared pointer itself (the adress is taked via get()).
394+
@param sharedPointer The shared pointer itself (the address is taken via get()).
395395
The archive takes a copy to prevent the memory location to be freed
396396
as long as the address is used as id. This is needed to prevent CVE-2020-11105.
397397
@return A key that uniquely identifies the pointer */
@@ -820,7 +820,7 @@ namespace cereal
820820
821821
@internal
822822
@param id The unique id that was serialized for the polymorphic type
823-
@return The string identifier for the tyep */
823+
@return The string identifier for the type */
824824
inline std::string getPolymorphicName(std::uint32_t const id)
825825
{
826826
auto name = itsPolymorphicTypeMap.find( id );
@@ -837,7 +837,7 @@ namespace cereal
837837
838838
@internal
839839
@param id The unique identifier for the polymorphic type
840-
@param name The name associated with the tyep */
840+
@param name The name associated with the type */
841841
inline void registerPolymorphicName(std::uint32_t const id, std::string const & name)
842842
{
843843
std::uint32_t const stripped_id = id & ~detail::msb_32bit;

include/cereal/details/polymorphic_impl.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#define CEREAL_BIND_TO_ARCHIVES_UNUSED_FUNCTION static void unused() { (void)b; }
6565
#endif
6666

67-
//! Binds a polymorhic type to all registered archives
67+
//! Binds a polymorphic type to all registered archives
6868
/*! This binds a polymorphic type to all compatible registered archives that
6969
have been registered with CEREAL_REGISTER_ARCHIVE. This must be called
7070
after all archives are registered (usually after the archives themselves
@@ -277,8 +277,8 @@ namespace cereal
277277

278278
// Find all chainable unregistered relations
279279
/* The strategy here is to process only the nodes in the class hierarchy graph that have been
280-
affected by the new insertion. The aglorithm iteratively processes a node an ensures that it
281-
is updated with all new shortest length paths. It then rocesses the parents of the active node,
280+
affected by the new insertion. The algorithm iteratively processes a node an ensures that it
281+
is updated with all new shortest length paths. It then processes the parents of the active node,
282282
with the knowledge that all children have already been processed.
283283
284284
Note that for the following, we'll use the nomenclature of parent and child to not confuse with
@@ -335,7 +335,7 @@ namespace cereal
335335
auto parentChildPath = checkRelation( parent, child );
336336

337337
// Search all paths from the child to its own children (finalChild),
338-
// looking for a shorter parth from parent to finalChild
338+
// looking for a shorter path from parent to finalChild
339339
for( auto const & finalChildPair : baseMap[child] )
340340
{
341341
const auto finalChild = finalChildPair.first;
@@ -812,7 +812,7 @@ namespace cereal
812812
813813
Since the compiler needs to check all possible overloads, the
814814
other overloads created via CEREAL_REGISTER_ARCHIVE, which will have
815-
lower precedence due to requring a conversion from int to (Archive*),
815+
lower precedence due to requiring a conversion from int to (Archive*),
816816
will cause their return types to be instantiated through the static object
817817
mechanisms even though they are never called.
818818

sandbox/sandbox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ int main()
714714
std::ifstream ss("xml_ordering.out");
715715
cereal::XMLInputArchive ar(ss);
716716

717-
// Output prodered out of order, try to load in order 1 2 3 4
717+
// Output out of order, try to load in order 1 2 3 4
718718
double one;
719719
double two;
720720
double three;

sandbox/sandbox_vs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ CEREAL_SETUP_ARCHIVE_TRAITS(Archive, Archive)
7777
struct Test
7878
{
7979
template <class Archive>
80-
void serialzize( Archive & )
80+
void serialize( Archive & )
8181
{
8282
std::cout << "hey there" << std::endl;
8383
}

0 commit comments

Comments
 (0)