[libcxx-commits] [libcxx] 2c07ca8 - [NFC][libc++] Fixes some comments.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 16 02:35:04 PDT 2023
Author: Mark de Wever
Date: 2023-07-16T11:34:41+02:00
New Revision: 2c07ca853b0bfbbb99572a14bf4ab1a942643232
URL: https://github.com/llvm/llvm-project/commit/2c07ca853b0bfbbb99572a14bf4ab1a942643232
DIFF: https://github.com/llvm/llvm-project/commit/2c07ca853b0bfbbb99572a14bf4ab1a942643232.diff
LOG: [NFC][libc++] Fixes some comments.
Added:
Modified:
libcxx/include/__format/buffer.h
libcxx/test/std/utilities/format/format.functions/format_tests.h
Removed:
################################################################################
diff --git a/libcxx/include/__format/buffer.h b/libcxx/include/__format/buffer.h
index a4fe81b4f79fb7..3203853b12fe32 100644
--- a/libcxx/include/__format/buffer.h
+++ b/libcxx/include/__format/buffer.h
@@ -616,7 +616,7 @@ class _LIBCPP_TEMPLATE_VIS __retarget_buffer {
auto __guard = std::__make_exception_guard([&] {
allocator_traits<_Alloc>::deallocate(__alloc_, __result.ptr, __result.count);
});
- // This shouldn't throw, but just to be safe. Not that at -O1 this
+ // This shouldn't throw, but just to be safe. Note that at -O1 this
// guard is optimized away so there is no runtime overhead.
std::uninitialized_move_n(__ptr_, __size_, __result.ptr);
__guard.__complete();
diff --git a/libcxx/test/std/utilities/format/format.functions/format_tests.h b/libcxx/test/std/utilities/format/format.functions/format_tests.h
index 19ef5874d64840..f55ed367037d06 100644
--- a/libcxx/test/std/utilities/format/format.functions/format_tests.h
+++ b/libcxx/test/std/utilities/format/format.functions/format_tests.h
@@ -2727,7 +2727,7 @@ void format_tests(TestFunction check, ExceptionTest check_exception) {
9,
0);
- // ** Test invalid format strings ***
+ // *** Test invalid format strings ***
check_exception("The format string terminates at a '{'", SV("{"));
check_exception("The replacement field misses a terminating '}'", SV("{:"), 42);
More information about the libcxx-commits
mailing list