We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bacbcc commit d1eb0e3Copy full SHA for d1eb0e3
src/doc/index.md
@@ -7,7 +7,7 @@
7
li {list-style-type: none; }
8
</style>
9
10
-* [A 30-minute Intro to Rust](intro.html) (read this first)
+* [A 30-minute Intro to Rust](intro.html)
11
* [The Rust tutorial](tutorial.html) (* [PDF](tutorial.pdf))
12
* [The Rust reference manual](rust.html) (* [PDF](rust.pdf))
13
src/doc/intro.md
@@ -36,6 +36,9 @@ int add_one(void)
36
}
37
```
38
39
+**Note: obviously this is very simple and non-idiomatic C++.
40
+You wouldn't write it in practice; it is for illustrative purposes.**
41
+
42
This function allocates an integer on the stack,
43
and stores it in a variable, `i`.
44
It then returns a reference to the variable `i`.
0 commit comments