[clang] [clang][doc] Block ABI Apple - __weak __block Support : struct typo (PR #77836)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 11 13:27:30 PST 2024


https://github.com/d4wae89d498 created https://github.com/llvm/llvm-project/pull/77836

Added two missing 's' for struct in the doc about block expressions.

>From 19629abb573dd25e688f2391ccc1605f73fe95c7 Mon Sep 17 00:00:00 2001
From: d4wae89d498 <faussurier.marc at icloud.com>
Date: Thu, 11 Jan 2024 22:25:19 +0100
Subject: [PATCH] [clang][doc] Block ABI Apple - __weak __block Support :
 struct typo

Added two missing 's' for struct in the doc about block expressions.
---
 clang/docs/Block-ABI-Apple.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/docs/Block-ABI-Apple.rst b/clang/docs/Block-ABI-Apple.rst
index 68f7a3819ca22e..9f8cd6377514b7 100644
--- a/clang/docs/Block-ABI-Apple.rst
+++ b/clang/docs/Block-ABI-Apple.rst
@@ -709,11 +709,11 @@ and within the compound statement:
 
 .. code-block:: c
 
-    truct _block_byref_obj obj = {( .forwarding=&obj, .flags=(1<<25), .size=sizeof(struct _block_byref_obj),
+    struct _block_byref_obj obj = {( .forwarding=&obj, .flags=(1<<25), .size=sizeof(struct _block_byref_obj),
                      .byref_keep=_block_byref_obj_keep, .byref_dispose=_block_byref_obj_dispose,
                      .captured_obj = <initialization expression> )};
 
-    truct __block_literal_5 _block_literal = {
+    struct __block_literal_5 _block_literal = {
          &_NSConcreteStackBlock,
          (1<<25)|(1<<29), <uninitialized>,
          __block_invoke_5,



More information about the cfe-commits mailing list