From 44b391fc473c3ea8ce5d6cefeac6c781060b398f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 24 Feb 2023 12:41:49 -0800 Subject: [PATCH] LanguageExtensions.rst: fix a typo in the `#pragma clang deprecated` example --- clang/docs/LanguageExtensions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index 2d1b8af..2595b5d 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -4665,7 +4665,7 @@ provide deprecation warnings for macro uses. For example: #define MIN(x, y) x < y ? x : y #pragma clang deprecated(MIN, "use std::min instead") - void min(int a, int b) { + int min(int a, int b) { return MIN(a, b); // warning: MIN is deprecated: use std::min instead } -- 2.7.4