Skip to content

Commit 4380ed1

Browse files
authored
Tweak example in C4172 warning reference
1 parent 2acb092 commit 4380ed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4172.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The following example generates C4172:
2626
const int* func1()
2727
{
2828
int i = 42;
29-
return &i; // C4172
29+
return &i; // C4172
3030
}
3131

3232
float f = 1.f;
@@ -37,7 +37,7 @@ const double& func2()
3737
// const auto& func2()
3838
{
3939
// The problem is that a temporary is created to convert f to a double.
40-
// C4172 in this case refers to returning the address of a temporary
40+
// C4172 in this case refers to returning the address of a temporary.
4141
return f; // C4172
4242
}
4343
```

0 commit comments

Comments
 (0)