Update disclaimer to improve clarity and intent

This commit is contained in:
Hugo Jobling 2014-07-01 09:50:55 +01:00 committed by Alex Crichton
parent 87c78fd7e3
commit 26ca10d2d7

View File

@ -36,8 +36,8 @@ int add_one(void)
}
```
**Note: obviously this is very simple and non-idiomatic C++.
You wouldn't write it in practice; it is for illustrative purposes.**
**Note: The above C++ code is deliberately simple and non-idiomatic for the purpose
of demonstration. It is not representative of production-quality C++ code.**
This function allocates an integer on the stack,
and stores it in a variable, `i`.