mirror of
https://github.com/fmtlib/fmt.git
synced 2025-06-25 01:11:40 +02:00
Fix some typos in comments (#4448)
- s/instantion/instantiation/ - s/uninitalized/uninitialized/ - s/costexpr/constexpr/ Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
@ -539,7 +539,7 @@ template <typename Char> class basic_string_view {
|
|||||||
FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) {
|
FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) {
|
||||||
#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
|
#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
|
||||||
if (std::is_same<Char, char>::value && !detail::is_constant_evaluated()) {
|
if (std::is_same<Char, char>::value && !detail::is_constant_evaluated()) {
|
||||||
size_ = __builtin_strlen(detail::narrow(s)); // strlen is not costexpr.
|
size_ = __builtin_strlen(detail::narrow(s)); // strlen is not constexpr.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -1068,7 +1068,7 @@ template <typename Char> struct named_arg_info {
|
|||||||
int id;
|
int id;
|
||||||
};
|
};
|
||||||
|
|
||||||
// named_args is non-const to suppress a bogus -Wmaybe-uninitalized in gcc 13.
|
// named_args is non-const to suppress a bogus -Wmaybe-uninitialized in gcc 13.
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args,
|
FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args,
|
||||||
int named_arg_index,
|
int named_arg_index,
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
// Generate a unique explicit instantion in every translation unit using a tag
|
// Generate a unique explicit instantiation in every translation unit using a
|
||||||
// type in an anonymous namespace.
|
// tag type in an anonymous namespace.
|
||||||
namespace {
|
namespace {
|
||||||
struct file_access_tag {};
|
struct file_access_tag {};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Reference in New Issue
Block a user