From 8667fbcaa309b8483dbdaff2a0ac61c9b831a6cb Mon Sep 17 00:00:00 2001 From: Shai Szulanski Date: Fri, 8 Dec 2023 17:56:06 -0800 Subject: [PATCH] Fix comment Summary: Causes user confusion by pointing to deprecated unstructured annotation Reviewed By: Mizuchi Differential Revision: D51990713 fbshipit-source-id: 735975d4613047d6a65d18e322ee1894848e417d --- thrift/annotation/cpp.thrift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrift/annotation/cpp.thrift b/thrift/annotation/cpp.thrift index d55bdf522ef..2e302381098 100644 --- a/thrift/annotation/cpp.thrift +++ b/thrift/annotation/cpp.thrift @@ -69,7 +69,7 @@ enum RefType { /** * Changes the name of the definition in generated C++ code. - * In most cases a much better solution is to rename the problematic Thrift field itself. Only use the `cpp.name` annotation if such renaming is problematic, + * In most cases a much better solution is to rename the problematic Thrift field itself. Only use the `@cpp.Name` annotation if such renaming is problematic, * e.g. when the field name appears in code as a string, particularly when using JSON serialization, and it is hard to change all usage sites. */ @scope.Definition