Skip to content

Commit

Permalink
Fix some typos (spelling)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashuebner authored and AzothAmmo committed Jun 15, 2023
1 parent f3e31f3 commit d1fcec8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion include/cereal/archives/xml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ namespace cereal
*/
//! @{

//! Sets the precision used for floaing point numbers
//! Sets the precision used for floating point numbers
Options & precision( int value ){ itsPrecision = value; return * this; }
//! Whether to indent each line of XML
Options & indent( bool enable ){ itsIndent = enable; return *this; }
Expand Down
8 changes: 4 additions & 4 deletions include/cereal/cereal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ namespace cereal
a serialization function. Classes with no data members are considered to be
empty. Be warned that if this is enabled and you attempt to serialize an
empty class with improperly formed serialize or load/save functions, no
static error will occur - the error will propogate silently and your
static error will occur - the error will propagate silently and your
intended serialization functions may not be called. You can manually
ensure that your classes that have custom serialization are correct
by using the traits is_output_serializable and is_input_serializable
Expand Down Expand Up @@ -391,7 +391,7 @@ namespace cereal
point to the same data.
@internal
@param sharedPointer The shared pointer itself (the adress is taked via get()).
@param sharedPointer The shared pointer itself (the address is taken via get()).
The archive takes a copy to prevent the memory location to be freed
as long as the address is used as id. This is needed to prevent CVE-2020-11105.
@return A key that uniquely identifies the pointer */
Expand Down Expand Up @@ -820,7 +820,7 @@ namespace cereal
@internal
@param id The unique id that was serialized for the polymorphic type
@return The string identifier for the tyep */
@return The string identifier for the type */
inline std::string getPolymorphicName(std::uint32_t const id)
{
auto name = itsPolymorphicTypeMap.find( id );
Expand All @@ -837,7 +837,7 @@ namespace cereal
@internal
@param id The unique identifier for the polymorphic type
@param name The name associated with the tyep */
@param name The name associated with the type */
inline void registerPolymorphicName(std::uint32_t const id, std::string const & name)
{
std::uint32_t const stripped_id = id & ~detail::msb_32bit;
Expand Down
10 changes: 5 additions & 5 deletions include/cereal/details/polymorphic_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#define CEREAL_BIND_TO_ARCHIVES_UNUSED_FUNCTION static void unused() { (void)b; }
#endif

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

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

// Search all paths from the child to its own children (finalChild),
// looking for a shorter parth from parent to finalChild
// looking for a shorter path from parent to finalChild
for( auto const & finalChildPair : baseMap[child] )
{
const auto finalChild = finalChildPair.first;
Expand Down Expand Up @@ -812,7 +812,7 @@ namespace cereal
Since the compiler needs to check all possible overloads, the
other overloads created via CEREAL_REGISTER_ARCHIVE, which will have
lower precedence due to requring a conversion from int to (Archive*),
lower precedence due to requiring a conversion from int to (Archive*),
will cause their return types to be instantiated through the static object
mechanisms even though they are never called.
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ int main()
std::ifstream ss("xml_ordering.out");
cereal::XMLInputArchive ar(ss);

// Output prodered out of order, try to load in order 1 2 3 4
// Output out of order, try to load in order 1 2 3 4
double one;
double two;
double three;
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox_vs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ CEREAL_SETUP_ARCHIVE_TRAITS(Archive, Archive)
struct Test
{
template <class Archive>
void serialzize( Archive & )
void serialize( Archive & )
{
std::cout << "hey there" << std::endl;
}
Expand Down

0 comments on commit d1fcec8

Please sign in to comment.