mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
fix typo
This commit is contained in:
@@ -13,15 +13,15 @@
|
||||
namespace toml
|
||||
{
|
||||
|
||||
using charactor = char;
|
||||
using character = char;
|
||||
|
||||
class value;
|
||||
using key = std::basic_string<charactor>;
|
||||
using key = std::basic_string<character>;
|
||||
|
||||
using Boolean = bool;
|
||||
using Integer = std::int64_t;
|
||||
using Float = double;
|
||||
using String = std::basic_string<charactor>;
|
||||
using String = std::basic_string<character>;
|
||||
using Datetime = basic_datetime<unsigned int, int>;
|
||||
using Array = std::vector<value>;
|
||||
using Table = std::unordered_map<key, value>;
|
||||
@@ -39,7 +39,7 @@ enum class value_t : std::uint8_t
|
||||
Unknown = 255,
|
||||
};
|
||||
|
||||
template<typename charT = charactor, typename traits = std::char_traits<charT>>
|
||||
template<typename charT = character, typename traits = std::char_traits<charT>>
|
||||
inline std::basic_ostream<charT, traits>&
|
||||
operator<<(std::basic_ostream<charT, traits>& os, value_t t)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ operator<<(std::basic_ostream<charT, traits>& os, value_t t)
|
||||
}
|
||||
}
|
||||
|
||||
template<typename charT = charactor, typename traits = std::char_traits<charT>,
|
||||
template<typename charT = character, typename traits = std::char_traits<charT>,
|
||||
typename alloc = std::allocator<charT>>
|
||||
inline std::basic_string<charT, traits, alloc>
|
||||
stringize(value_t t)
|
||||
|
Reference in New Issue
Block a user