[llvm] 4682208 - [NFC] Correct the example in the comments of JSON.h to avoid mislead
QingShan Zhang via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 02:03:55 PST 2019
Author: QingShan Zhang
Date: 2019-12-11T10:03:34Z
New Revision: 46822083ef9f03ceb26db80410e47f23aa9bd7ae
URL: https://github.com/llvm/llvm-project/commit/46822083ef9f03ceb26db80410e47f23aa9bd7ae
DIFF: https://github.com/llvm/llvm-project/commit/46822083ef9f03ceb26db80410e47f23aa9bd7ae.diff
LOG: [NFC] Correct the example in the comments of JSON.h to avoid mislead
user
Added:
Modified:
llvm/include/llvm/Support/JSON.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/JSON.h b/llvm/include/llvm/Support/JSON.h
index 2657ea7dfbea..2c63468c401a 100644
--- a/llvm/include/llvm/Support/JSON.h
+++ b/llvm/include/llvm/Support/JSON.h
@@ -714,7 +714,7 @@ class ParseError : public llvm::ErrorInfo<ParseError> {
/// J.attribute("timestamp", int64_t(E.Time));
/// J.attributeArray("participants", [&] {
/// for (const Participant &P : E.Participants)
-/// J.string(P.toString());
+/// J.value(P.toString());
/// });
/// });
/// });
More information about the llvm-commits
mailing list