|
1 | 1 | % The Rust Guide |
2 | 2 |
|
3 | | -<div style="border: 2px solid red; padding:5px;"> |
4 | | -This guide is a work in progress. Until it is ready, we highly recommend that |
5 | | -you read the <a href="tutorial.html">Tutorial</a> instead. This work-in-progress Guide is being |
6 | | -displayed here in line with Rust's open development policy. Please open any |
7 | | -issues you find as usual. |
8 | | -</div> |
9 | | - |
10 | | -# Welcome! |
11 | | - |
12 | 3 | Hey there! Welcome to the Rust guide. This is the place to be if you'd like to |
13 | 4 | learn how to program in Rust. Rust is a systems programming language with a |
14 | 5 | focus on "high-level, bare-metal programming": the lowest level control a |
@@ -119,7 +110,7 @@ The first thing that we need to do is make a file to put our code in. I like |
119 | 110 | to make a `projects` directory in my home directory, and keep all my projects |
120 | 111 | there. Rust does not care where your code lives. |
121 | 112 |
|
122 | | -This actually leads to one other concern we should address: this tutorial will |
| 113 | +This actually leads to one other concern we should address: this guide will |
123 | 114 | assume that you have basic familiarity with the command line. Rust does not |
124 | 115 | require that you know a whole ton about the command line, but until the |
125 | 116 | language is in a more finished state, IDE support is spotty. Rust makes no |
@@ -215,7 +206,7 @@ Finally, the line ends with a semicolon (`;`). Rust is an **expression |
215 | 206 | oriented** language, which means that most things are expressions. The `;` is |
216 | 207 | used to indicate that this expression is over, and the next one is ready to |
217 | 208 | begin. Most lines of Rust code end with a `;`. We will cover this in-depth |
218 | | -later in the tutorial. |
| 209 | +later in the guide. |
219 | 210 |
|
220 | 211 | Finally, actually **compiling** and **running** our program. We can compile |
221 | 212 | with our compiler, `rustc`, by passing it the name of our source file: |
@@ -2017,7 +2008,7 @@ Great! Next up: let's compare our guess to the secret guess. |
2017 | 2008 |
|
2018 | 2009 | ## Comparing guesses |
2019 | 2010 |
|
2020 | | -If you remember, earlier in the tutorial, we made a `cmp` function that compared |
| 2011 | +If you remember, earlier in the guide, we made a `cmp` function that compared |
2021 | 2012 | two numbers. Let's add that in, along with a `match` statement to compare the |
2022 | 2013 | guess to the secret guess: |
2023 | 2014 |
|
|
0 commit comments