From 3add13e01c71477b05c9e3159fce994644f9b7f2 Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Thu, 29 Feb 2024 17:51:26 +0800
Subject: [PATCH 1/4] Fix built-in operators toc yml
---
...and-right-shift-operators-input-and-output.md | 8 ++++----
docs/cpp/subscript-operator.md | 16 ++++++++--------
docs/cpp/toc.yml | 4 ++--
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md b/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
index 63c8d803936..198445fa508 100644
--- a/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
+++ b/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
@@ -1,12 +1,12 @@
---
-description: "Learn more about: Left shift and right shift operators ('<<' and '>>')"
-title: "Left shift and right shift operators ('<<' and '>>')"
+description: "Learn more about: Left shift and right shift operators: `<<` and `>>`"
+title: "Left shift and right shift operators: `<<` and `>>`"
ms.date: 12/09/2021
f1_keywords: ["<<", ">>"]
helpviewer_keywords: ["<< operator [C++], with specific objects", "left shift operators [C++]", "right shift operators [C++]", "bitwise-shift operators [C++]", ">> operator", "shift operators [C++]", "operators [C++], shift"]
ms.assetid: 25fa0cbb-5fdd-4657-8745-b35f7d8f1606
---
-# Left shift and right shift operators (`<<` and `>>`)
+# Left shift and right shift operators: `<<` and `>>`
The bitwise shift operators are the right-shift operator (**`>>`**), which moves the bits of an integer or enumeration type expression to the right, and the left-shift operator (**`<<`**), which moves the bits to the left. 1
@@ -218,5 +218,5 @@ The value of `E1 >> E2` is `E1` right-shifted `E2` bit positions. If `E1` has an
## See also
-[Expressions with binary operators](../cpp/expressions-with-binary-operators.md)
+[Expressions with binary operators](../cpp/expressions-with-binary-operators.md)\
[C++ built-in operators, precedence, and associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
diff --git a/docs/cpp/subscript-operator.md b/docs/cpp/subscript-operator.md
index 86d55361d04..f7dfcf6dbe1 100644
--- a/docs/cpp/subscript-operator.md
+++ b/docs/cpp/subscript-operator.md
@@ -1,12 +1,12 @@
---
-description: "Learn more about: Subscript Operator []"
-title: "Subscript Operator []"
+description: "Learn more about: Subscript Operator: `[]`"
+title: "Subscript Operator: `[]`"
ms.date: "11/04/2016"
f1_keywords: ["[]"]
helpviewer_keywords: ["operators [C++], subscript", "postfix operators [C++]", "[] operator", "subscript operator [C++], syntax"]
ms.assetid: 69c31494-52da-4dd0-8bbe-6ccbfd50f197
---
-# Subscript Operator []
+# Subscript Operator: `[]`
## Syntax
@@ -98,8 +98,8 @@ The subscript operator is commutative. Therefore, the expressions *array*[*index
## See also
-[Postfix Expressions](../cpp/postfix-expressions.md)
-[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
-[Arrays](../cpp/arrays-cpp.md)
-[One-Dimensional Arrays](../c-language/one-dimensional-arrays.md)
-[Multidimensional Arrays](../c-language/multidimensional-arrays-c.md)
+[Postfix Expressions](../cpp/postfix-expressions.md)\
+[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)\
+[Arrays](../cpp/arrays-cpp.md)\
+[One-Dimensional Arrays](../c-language/one-dimensional-arrays.md)\
+[Multidimensional Arrays](../c-language/multidimensional-arrays-c.md)
diff --git a/docs/cpp/toc.yml b/docs/cpp/toc.yml
index 682e99504a1..03a00af04cb 100644
--- a/docs/cpp/toc.yml
+++ b/docs/cpp/toc.yml
@@ -160,7 +160,7 @@ items:
href: ../cpp/function-call-operator-parens.md
- name: "Indirection operator: *"
href: ../cpp/indirection-operator-star.md
- - name: Left shift and right shift operators (>> and <<)
+ - name: "Left shift and right shift operators: << and >>"
href: ../cpp/left-shift-and-right-shift-operators-input-and-output.md
- name: "Logical AND operator: &&"
href: ../cpp/logical-and-operator-amp-amp.md
@@ -188,7 +188,7 @@ items:
href: ../cpp/scope-resolution-operator.md
- name: sizeof operator
href: ../cpp/sizeof-operator.md
- - name: "Subscript operator:"
+ - name: "Subscript operator: []"
href: ../cpp/subscript-operator.md
- name: typeid operator
href: ../cpp/typeid-operator.md
From 830849755dc9f92f81e06f7e736b58dd1b1cc62a Mon Sep 17 00:00:00 2001
From: Tyler Whitney
Date: Thu, 29 Feb 2024 14:01:13 -0800
Subject: [PATCH 2/4] Update subscript-operator.md
---
docs/cpp/subscript-operator.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/cpp/subscript-operator.md b/docs/cpp/subscript-operator.md
index f7dfcf6dbe1..21e9b1f010b 100644
--- a/docs/cpp/subscript-operator.md
+++ b/docs/cpp/subscript-operator.md
@@ -1,10 +1,9 @@
---
description: "Learn more about: Subscript Operator: `[]`"
-title: "Subscript Operator: `[]`"
+title: "Subscript Operator: []"
ms.date: "11/04/2016"
f1_keywords: ["[]"]
helpviewer_keywords: ["operators [C++], subscript", "postfix operators [C++]", "[] operator", "subscript operator [C++], syntax"]
-ms.assetid: 69c31494-52da-4dd0-8bbe-6ccbfd50f197
---
# Subscript Operator: `[]`
From 138cebb1f18ead28ea39bc663cf2f3a7b68b0d54 Mon Sep 17 00:00:00 2001
From: Tyler Whitney
Date: Thu, 29 Feb 2024 14:03:16 -0800
Subject: [PATCH 3/4] Update
left-shift-and-right-shift-operators-input-and-output.md
---
.../left-shift-and-right-shift-operators-input-and-output.md | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md b/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
index 198445fa508..ca0ac901cab 100644
--- a/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
+++ b/docs/cpp/left-shift-and-right-shift-operators-input-and-output.md
@@ -1,10 +1,9 @@
---
-description: "Learn more about: Left shift and right shift operators: `<<` and `>>`"
-title: "Left shift and right shift operators: `<<` and `>>`"
+description: "Learn more about: Left shift and right shift operators: << and >>"
+title: "Left shift and right shift operators: << and >>"
ms.date: 12/09/2021
f1_keywords: ["<<", ">>"]
helpviewer_keywords: ["<< operator [C++], with specific objects", "left shift operators [C++]", "right shift operators [C++]", "bitwise-shift operators [C++]", ">> operator", "shift operators [C++]", "operators [C++], shift"]
-ms.assetid: 25fa0cbb-5fdd-4657-8745-b35f7d8f1606
---
# Left shift and right shift operators: `<<` and `>>`
From ebaeea0d71b9448318c225dd748ac60d24131fef Mon Sep 17 00:00:00 2001
From: Tyler Whitney
Date: Thu, 29 Feb 2024 14:04:08 -0800
Subject: [PATCH 4/4] Update subscript-operator.md
---
docs/cpp/subscript-operator.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/cpp/subscript-operator.md b/docs/cpp/subscript-operator.md
index 21e9b1f010b..84dacb04976 100644
--- a/docs/cpp/subscript-operator.md
+++ b/docs/cpp/subscript-operator.md
@@ -1,5 +1,5 @@
---
-description: "Learn more about: Subscript Operator: `[]`"
+description: "Learn more about: Subscript Operator: []"
title: "Subscript Operator: []"
ms.date: "11/04/2016"
f1_keywords: ["[]"]