[llvm] e3e4f33 - [llvm][StringExtras][NFC] Use correct \endcode doxygen command (#177146)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 21 06:18:29 PST 2026
Author: Timm Baeder
Date: 2026-01-21T09:18:22-05:00
New Revision: e3e4f33569e78cf8b31ff659f83581c23414046d
URL: https://github.com/llvm/llvm-project/commit/e3e4f33569e78cf8b31ff659f83581c23414046d
DIFF: https://github.com/llvm/llvm-project/commit/e3e4f33569e78cf8b31ff659f83581c23414046d.diff
LOG: [llvm][StringExtras][NFC] Use correct \endcode doxygen command (#177146)
`\end` is wrong and shows up in the generated documentation.
Added:
Modified:
llvm/include/llvm/ADT/StringExtras.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h
index 0cc6d0868b2ce..017859d3d8c3c 100644
--- a/llvm/include/llvm/ADT/StringExtras.h
+++ b/llvm/include/llvm/ADT/StringExtras.h
@@ -520,7 +520,7 @@ inline std::string join_items(Sep Separator, Args &&... Items) {
/// ListSeparator LS;
/// for (auto &I : C)
/// OS << LS << I.getName();
-/// \end
+/// \endcode
class ListSeparator {
bool First = true;
StringRef Separator;
@@ -602,9 +602,9 @@ class SplittingIterator
/// \code
/// for (StringRef x : llvm::split("foo,bar,baz", ","))
/// ...;
-/// \end
+/// \endcode
///
-/// Note that the passed string must remain valid throuhgout lifetime
+/// Note that the passed string must remain valid throughout lifetime
/// of the iterators.
inline iterator_range<SplittingIterator> split(StringRef Str, StringRef Separator) {
return {SplittingIterator(Str, Separator),
More information about the llvm-commits
mailing list