Skip to content

Commit 9cd733a

Browse files
authored
fix formatting
fix formatting
1 parent c86c445 commit 9cd733a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/cpp/functions-cpp.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ When **auto** is used in conjunction with a trailing return type, it just serves
261261
262262
A variable that is declared inside a function body is called a *local variable* or simply a *local*. Non-static locals are only visible inside the function body and, if they are declared on the stack go out of scope when the function exits. When you construct a local variable and return it by value, the compiler can usually perform the return value optimization to avoid unnecessary copy operations. If you return a local variable by reference, the compiler will issue a warning because any attempt by the caller to use that reference will occur after the local has been destroyed.
263263
264-
In C++ a local variable may be declared as static. The variable is only visible inside the function body, but a single copy of the variable exists for all instances of the function. Local static objects are destroyed during termination specified by `atexit**. If a static object was not constructed because the program's flow of control bypassed its declaration, no attempt is made to destroy that object.
264+
In C++ a local variable may be declared as static. The variable is only visible inside the function body, but a single copy of the variable exists for all instances of the function. Local static objects are destroyed during termination specified by **atexit**. If a static object was not constructed because the program's flow of control bypassed its declaration, no attempt is made to destroy that object.
265265
266266
## <a name="type_deduction"></a> Type deduction in return types (C++14)
267267
@@ -339,8 +339,7 @@ There are various ways to return more than one value from a function:
339339
#include <iostream>
340340
341341
using namespace std;
342-
343-
342+
344343
tuple<int, string, double> f()
345344
{
346345
int i{ 108 };
@@ -434,4 +433,4 @@ The preceding declaration is equivalent to the declaration using typedef above.
434433
- [Explicitly Defaulted and Deleted Functions](../cpp/explicitly-defaulted-and-deleted-functions.md)
435434
- [Argument-Dependent Name (Koenig) Lookup on Functions](../cpp/argument-dependent-name-koenig-lookup-on-functions.md)
436435
- [Default Arguments](../cpp/default-arguments.md)
437-
- [Inline Functions](../cpp/inline-functions-cpp.md)
436+
- [Inline Functions](../cpp/inline-functions-cpp.md)

0 commit comments

Comments
 (0)