Skip to content

Commit 7b3f114

Browse files
TylerMSFTTylerMSFT
authored andcommitted
fix metadata tag
1 parent 45e5e14 commit 7b3f114

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/c-language/type-qualifiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If **`volatile`** is used alone, **`int`** is assumed. The **`volatile`** type s
5757
5858
## `restrict`
5959
60-
The **`restrict`** type qualifier, introduced in C99, can be applied to pointer declarations like this: `int* restrict pIndex;` It qualifies the pointer, not what it points at.
60+
The **`restrict`** type qualifier, introduced in C99, can be applied to pointer declarations. It qualifies the pointer, not what it points at.
6161
6262
**`restrict`** is an optimization hint to the compiler that no other pointer in the current scope refers to the same memory location. That is, only the pointer or a value derived from it (such as pointer + 1) is used to access the object during the lifetime of the pointer. This helps the compiler produce more optimized code. C++ has an equivalent mechanism, [`__restrict`](../cpp/extension-restrict.md)
6363

docs/cpp/extension-restrict.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "`__restrict`"
3-
descripton: "Describes the Microsoft Visual C++ `__restrict` keyword."
3+
description: "Describes the Microsoft Visual C++ `__restrict` keyword."
44
ms.date: "11/6/2020"
55
f1_keywords: ["__restrict_cpp", "__restrict", "_restrict"]
66
helpviewer_keywords: ["__restrict keyword [C++]"]

0 commit comments

Comments
 (0)