Skip to content

Commit 74e4ac7

Browse files
author
mtx48109
committed
minor corrections
1 parent ad569ac commit 74e4ac7

8 files changed

Lines changed: 17 additions & 17 deletions

docs/cpp/equality-operators-equal-equal-and-exclpt-equal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ expression != expression
2525

2626
The equality operators, equal to (`==`) and not equal to (`!=`), have lower precedence than the relational operators, but they behave similarly. The result type for these operators is **bool**.
2727

28-
The equal-to operator (`==`) returns TRUE (1) if both operands have the same value; otherwise, it returns FALSE (0). The not-equal-to operator (`!=`) returns TRUE if the operands do not have the same value; otherwise, it returns FALSE.
28+
The equal-to operator (`==`) returns **true** (1) if both operands have the same value; otherwise, it returns **false** (0). The not-equal-to operator (`!=`) returns **true** if the operands do not have the same value; otherwise, it returns **false**.
2929

3030
## Operator Keyword for !=
3131
The `not_eq` operator is the text equivalent of `!=`. There are two ways to access the `not_eq` operator in your programs: include the header file `iso646.h`, or compile with the [/Za](../build/reference/za-ze-disable-language-extensions.md) (Disable language extensions) compiler option.

docs/cpp/event-handling-in-com.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ MyHandler2 was called with value 123.
142142
## <a name="vcconeventhandlingincomanchorlayoutdependentcomevents"></a> Layout Dependent COM Events
143143
Layout dependency is only an issue for COM programming. In native and managed event handling, the signatures (return type, calling convention, and arguments) of the handlers must match their events, but the handler names do not have to match their events.
144144

145-
However, in COM event handling, when you set the *layout_dependent* parameter of `event_receiver` to TRUE, the name and signature matching is enforced. This means that the names and signatures of the handlers in the event receiver must exactly match the names and signatures of the events to which they are hooked.
145+
However, in COM event handling, when you set the *layout_dependent* parameter of `event_receiver` to **true**, the name and signature matching is enforced. This means that the names and signatures of the handlers in the event receiver must exactly match the names and signatures of the events to which they are hooked.
146146

147-
When *layout_dependent* is set to FALSE, the calling convention and storage class (virtual, static, and so on) can be mixed and matched between the firing event method and the hooking methods (its delegates). It is slightly more efficient to have *layout_dependent*=TRUE.
147+
When *layout_dependent* is set to **false**, the calling convention and storage class (virtual, static, and so on) can be mixed and matched between the firing event method and the hooking methods (its delegates). It is slightly more efficient to have *layout_dependent*=**true**.
148148

149149
For example, suppose `IEventSource` is defined to have the following methods:
150150

docs/cpp/examples-of-lambda-expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ int main()
123123
```
124124

125125
### Example 2
126-
This example passes a lambda expression as an argument to the `find_if` function. The lambda expression returns TRUE if its parameter is an even number.
126+
This example passes a lambda expression as an argument to the `find_if` function. The lambda expression returns **true** if its parameter is an even number.
127127

128128
### Code
129129

docs/cpp/false-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: "mblome"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# false (C++)
16-
The keyword is one of the two values for a variable of type [bool](../cpp/bool-cpp.md) or a conditional expression (a conditional expression is now a TRUE Boolean expression). For example, if `i` is a variable of type **bool**, the `i = false;` statement assigns FALSE to `i`.
16+
The keyword is one of the two values for a variable of type [bool](../cpp/bool-cpp.md) or a conditional expression (a conditional expression is now a **true** Boolean expression). For example, if `i` is a variable of type **bool**, the `i = false;` statement assigns **false** to `i`.
1717

1818
## Example
1919

docs/cpp/functions-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Optional parts of a function declaration are:
100100

101101
For more information, see [Inline Functions](../cpp/inline-functions-cpp.md).
102102

103-
1. A **noexcept** expression, which specifies whether or not the function can throw an exception. In the following example, the function does not throw an exception if the `is_pod` expression evaluates to TRUE.
103+
1. A **noexcept** expression, which specifies whether or not the function can throw an exception. In the following example, the function does not throw an exception if the `is_pod` expression evaluates to **true**.
104104

105105
```cpp
106106
#include <type_traits>

docs/cpp/fundamental-types-cpp.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ Fundamental types in C++ are divided into three categories: integral, floating p
2929

3030
|Category|Type|Contents|
3131
|--------------|----------|--------------|
32-
|Integral|**char**|Type **char** is an integral type that usually contains members of the basic execution character set — By default, this is ASCII in Microsoft C++.<br /><br /> The C++ compiler treats variables of type **char**, **signed** **char**, and **unsigned** **char** as having different types. Variables of type **char** are promoted to **int** as if they are type **signed** **char** by default, unless the /J compilation option is used. In this case they are treated as type **unsigned** **char** and are promoted to **int** without sign extension.|
33-
||**bool**|Type **bool** is an integral type that can have one of the two values TRUE or FALSE. Its size is unspecified.|
34-
||**short**|Type **short** **int** (or simply **short**) is an integral type that is larger than or equal to the size of type **char**, and shorter than or equal to the size of type **int**.<br /><br /> Objects of type **short** can be declared as **signed** **short** or **unsigned short**. **Signed short** is a synonym for **short**.|
35-
||**int**|Type **int** is an integral type that is larger than or equal to the size of type **short** **int**, and shorter than or equal to the size of type **long**.<br /><br /> Objects of type **int** can be declared as **signed** **int** or **unsigned** **int**. **Signed** **int** is a synonym for **int**.|
32+
|Integral|**char**|Type **char** is an integral type that usually contains members of the basic execution character set — By default, this is ASCII in Microsoft C++.<br /><br /> The C++ compiler treats variables of type **char**, **signed char**, and **unsigned char** as having different types. Variables of type **char** are promoted to **int** as if they are type **signed char** by default, unless the /J compilation option is used. In this case they are treated as type **unsigned char** and are promoted to **int** without sign extension.|
33+
||**bool**|Type **bool** is an integral type that can have one of the two values **true** or **false**. Its size is unspecified.|
34+
||**short**|Type **short int** (or simply **short**) is an integral type that is larger than or equal to the size of type **char**, and shorter than or equal to the size of type **int**.<br /><br /> Objects of type **short** can be declared as **signed short** or **unsigned short**. **Signed short** is a synonym for **short**.|
35+
||**int**|Type **int** is an integral type that is larger than or equal to the size of type **short int**, and shorter than or equal to the size of type **long**.<br /><br /> Objects of type **int** can be declared as **signed int** or **unsigned int**. **Signed int** is a synonym for **int**.|
3636
||**__int8**, **__int16**, **__int32**, **__int64**|Sized integer `__int n`, where `n` is the size, in bits, of the integer variable. **__int8**, **__int16**, **__int32** and **__int64** are Microsoft-specific keywords. Not all types are available on all architectures. (**__int128** is not supported.)|
37-
||**long**|Type **long** (or **long** **int**) is an integral type that is larger than or equal to the size of type **int**.<br /><br /> Objects of type **long** can be declared as **signed** **long** or **unsigned** **long**. **Signed** **long** is a synonym for **long**.|
38-
||**long** **long**|Larger than an unsigned **long**.<br /><br /> Objects of type **long long** can be declared as **signed** **long long** or **unsigned** **long long**. **signed** **long long** is a synonym for **long long**.|
37+
||**long**|Type **long** (or **long int**) is an integral type that is larger than or equal to the size of type **int**.<br /><br /> Objects of type **long** can be declared as **signed long** or **unsigned long**. **Signed long** is a synonym for **long**.|
38+
||**long long**|Larger than an unsigned **long**.<br /><br /> Objects of type **long long** can be declared as **signed long long** or **unsigned long long**. **signed long long** is a synonym for **long long**.|
3939
||**wchar_t**, **__wchar_t**|A variable of type **wchar_t** designates a wide-character or multibyte character type. By default, **wchar_t** is a native type, but you can use [/Zc:wchar_t-](../build/reference/zc-wchar-t-wchar-t-is-native-type.md) to make **wchar_t** a typedef for **unsigned short**. The **__wchar_t** type is a Microsoft-specific synonym for the native **wchar_t** type.<br /><br /> Use the L prefix before a character or string literal to designate the wide-character type.|
4040
|Floating point|**float**|Type **float** is the smallest floating point type.|
41-
||**double**|Type **double** is a floating point type that is larger than or equal to type **float**, but shorter than or equal to the size of type **long** **double**.<br /><br /> Microsoft specific: The representation of **long double** and **double** is identical. However, **long double** and **double** are separate types.|
42-
||**long double**|Type **long** **double** is a floating point type that is larger than or equal to type **double**.|
41+
||**double**|Type **double** is a floating point type that is larger than or equal to type **float**, but shorter than or equal to the size of type **long double**.<br /><br /> Microsoft specific: The representation of **long double** and **double** is identical. However, **long double** and **double** are separate types.|
42+
||**long double**|Type **long double** is a floating point type that is larger than or equal to type **double**.|
4343

4444
**Microsoft Specific**
4545

docs/cpp/goto-statement-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ goto identifier;
2828

2929
It is good programming style to use the **break**, **continue**, and **return** statements instead of the **goto** statement whenever possible. However, because the **break** statement exits from only one level of a loop, you might have to use a **goto** statement to exit a deeply nested loop.
3030

31-
For more information about labels and the **goto** statement, see [Labeled Statements](../cpp/labeled-statements.md) and [Using Labels with the goto Statement](http://msdn.microsoft.com/en-us/6cd7c31a-9822-4241-8566-f79f51be48fe).
31+
For more information about labels and the **goto** statement, see [Labeled Statements](../cpp/labeled-statements.md) and [Using Labels with the goto Statement](http://msdn.microsoft.com/6cd7c31a-9822-4241-8566-f79f51be48fe).
3232

3333
## Example
3434
In this example, a **goto** statement transfers control to the point labeled `stop` when `i` equals 3.

docs/cpp/hook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ long __hook(
4242
- Managed events: *SourceClass* is the event source class and *EventMethod* is the event.
4343

4444
*interface*
45-
The interface name being hooked to *receiver*, only for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is TRUE.
45+
The interface name being hooked to *receiver*, only for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is **true**.
4646

4747
*source*
4848
A pointer to an instance of the event source. Depending on the code `type` specified in `event_receiver`, *source* can be one of the following:
@@ -71,7 +71,7 @@ long __hook(
7171
## Remarks
7272
Use the intrinsic function **__hook** in an event receiver to associate or hook a handler method with an event method. The specified handler is then called when the source raises the specified event. You can hook several handlers to a single event or hook several events to a single handler.
7373

74-
There are two forms of **__hook**. You can use the first (four-argument) form in most cases, specifically, for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is FALSE.
74+
There are two forms of **__hook**. You can use the first (four-argument) form in most cases, specifically, for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is **false**.
7575

7676
In these cases you do not need to hook all methods in an interface before firing an event on one of the methods; only the method handling the event needs to be hooked. You can use the second (two-argument) form of **__hook** only for a COM event receiver in which *layout_dependent***=true**.
7777

0 commit comments

Comments
 (0)