Skip to content

Commit

Permalink
Fix another typos in strings and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sndth committed Oct 5, 2024
1 parent d2f105e commit c1891e7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/fkYAML/detail/conversions/scalar_conv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ inline bool atof_impl(const char* p_begin, const char* p_end, double& f) {

/// @brief Converts a scalar into a floating point value.
/// @tparam CharItr The type of char iterators. Its value type must be char (maybe cv-qualified).
/// @tparam FloatType The output floatint point value type.
/// @tparam FloatType The output floating point value type.
/// @param begin The iterator to the first element of the scalar.
/// @param end The iterator to the past-the-end element of the scalar.
/// @param f The output floating point value holder.
Expand Down
2 changes: 1 addition & 1 deletion include/fkYAML/detail/conversions/to_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FK_YAML_DETAIL_NAMESPACE_BEGIN
///////////////////////////////////

/// @brief The external constructor template for basic_node objects.
/// @note All the non-specialized instanciations results in compilation error since such instantiations are not
/// @note All the non-specialized instantiations results in compilation error since such instantiations are not
/// supported.
/// @warning All the specialization must call n.m_node_value.destroy() first in the construct function to avoid
/// memory leak.
Expand Down
2 changes: 1 addition & 1 deletion include/fkYAML/detail/input/input_adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ inline iterator_input_adapter<ItrType> create_iterator_input_adapter(

} // anonymous namespace

/// @brief A factory method for iterator_input_adapter objects with ieterator values.
/// @brief A factory method for iterator_input_adapter objects with iterator values.
/// @tparam ItrType An iterator type.
/// @param begin The beginning of iterators.
/// @param end The end of iterators.
Expand Down
8 changes: 4 additions & 4 deletions include/fkYAML/detail/input/lexical_analyzer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// SPDX-FileCopyrightText: 2023-2024 Kensuke Fukutani <[email protected]>
// SPDX-License-Identifier: MIT

#ifndef FK_YAML_DETAIL_INPUT_LEXICAL_ANALIZER_HPP_
#define FK_YAML_DETAIL_INPUT_LEXICAL_ANALIZER_HPP_
#ifndef FK_YAML_DETAIL_INPUT_LEXICAL_ANALYZER_HPP_
#define FK_YAML_DETAIL_INPUT_LEXICAL_ANALYZER_HPP_

#include <algorithm>
#include <cctype>
Expand Down Expand Up @@ -35,7 +35,7 @@ namespace {

// whether the current context is flow(1) or block(0)
const uint32_t flow_context_bit = 1u << 0u;
// whether the curent document part is directive(1) or content(0)
// whether the current document part is directive(1) or content(0)
const uint32_t document_directive_bit = 1u << 1u;

} // anonymous namespace
Expand Down Expand Up @@ -1437,4 +1437,4 @@ class lexical_analyzer {

FK_YAML_DETAIL_NAMESPACE_END

#endif /* FK_YAML_DETAIL_INPUT_LEXICAL_ANALIZER_HPP_ */
#endif /* FK_YAML_DETAIL_INPUT_LEXICAL_ANALYZER_HPP_ */
2 changes: 1 addition & 1 deletion include/fkYAML/detail/output/serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class basic_serializer {
}

/// @brief Serialize the directives if any is applied to the node.
/// @param node The targe node.
/// @param node The target node.
/// @param str A string to hold serialization result.
/// @return bool true if any directive is serialized, false otherwise.
bool serialize_directives(const BasicNodeType& node, std::string& str) {
Expand Down
4 changes: 2 additions & 2 deletions include/fkYAML/detail/str_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class basic_str_view {
/// @brief Construction from a null pointer is forbidden.
basic_str_view(std::nullptr_t) = delete;

/// @brief Constructs a basic_str_view object from a poineter to a character sequence and its size.
/// @brief Constructs a basic_str_view object from a pointer to a character sequence and its size.
/// @param p_str A pointer to a character sequence. (May or may not be null-terminated.)
/// @param len The length of a character sequence.
basic_str_view(const value_type* p_str, size_type len) noexcept
Expand Down Expand Up @@ -340,7 +340,7 @@ class basic_str_view {

/// @brief Compares the referenced character sequence with `s` character sequence.
/// @param s The pointer to a character sequence to compare with.
/// @return The lexicolographical comparison result. The values are same as std::strncmp().
/// @return The lexicographical comparison result. The values are same as std::strncmp().
int compare(const CharT* s) const {
return compare(basic_str_view(s));
}
Expand Down
2 changes: 1 addition & 1 deletion include/fkYAML/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class basic_node {
using initializer_list_t = std::initializer_list<detail::node_ref_storage<basic_node>>;

/// @brief The actual storage for a YAML node value of the @ref basic_node class.
/// @details This union combines the different sotrage types for the YAML value types defined in @ref node_t.
/// @details This union combines the different storage types for the YAML value types defined in @ref node_t.
/// @note Container types are stored as pointers so that the size of this union will not exceed 64 bits by
/// default.
union node_value {
Expand Down

0 comments on commit c1891e7

Please sign in to comment.