Skip to content

Commit 1f94034

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#2181 from FaresSalem/patch-1
minor grammar fix
2 parents 1c89e67 + 918c500 commit 1f94034

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/cpp/scope-visual-cpp.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ For automatic non-static variables, scope also determines when they are created
1212

1313
There are six kinds of scope:
1414

15-
- **Global scope** A global name is one that is declared outside of any class, function or namespace. However, in C++ even these names exist with an implicit global namespace. The scope of global names extends from the point of declaration to the end of the file in which they are declared. For global names, visibility is also governed by the rules of [linkage](program-and-linkage-cpp.md) which determine whether the name is visible in other files in the program.
15+
- **Global scope** A global name is one that is declared outside of any class, function, or namespace. However, in C++ even these names exist with an implicit global namespace. The scope of global names extends from the point of declaration to the end of the file in which they are declared. For global names, visibility is also governed by the rules of [linkage](program-and-linkage-cpp.md) which determine whether the name is visible in other files in the program.
1616

17-
- **Namespace scope** A name that is declared within a [namespace](namespaces-cpp.md), outside of any class or enum definition or function block, is visible from its point of declaration to the end of namespace. A namespace may be defined in multiple blocks across different files.
17+
- **Namespace scope** A name that is declared within a [namespace](namespaces-cpp.md), outside of any class or enum definition or function block, is visible from its point of declaration to the end of the namespace. A namespace may be defined in multiple blocks across different files.
1818

1919
- **Local scope** A name declared within a function or lambda, including the parameter names, have local scope. They are often referred to as "locals". They are only visible from their point of declaration to the end of the function or lambda body. Local scope is a kind of block scope, which is discussed later in this article.
2020

@@ -72,10 +72,10 @@ int main()
7272
class Account Checking( Account ); // Qualifies Account as
7373
// class name
7474

75-
cout << "Opening account with balance of: "
75+
cout << "Opening account with a balance of: "
7676
<< Checking.GetBalance() << "\n";
7777
}
78-
//Output: Opening account with balance of: 15.37
78+
//Output: Opening account with a balance of: 15.37
7979
```
8080

8181
> [!NOTE]

0 commit comments

Comments
 (0)