Skip to content

Commit c4cede2

Browse files
authored
Merge pull request #4150 from rust-lang/indentation-fixes-2023
Remove emphasis on four-space indents
2 parents bcd6fc0 + 2186da2 commit c4cede2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ch01-02-hello-world.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,16 @@ println!("Hello, world!");
121121
This line does all the work in this little program: it prints text to the
122122
screen. There are four important details to notice here.
123123

124-
First, Rust style is to indent with four spaces, not a tab.
125-
126-
Second, `println!` calls a Rust macro. If it had called a function instead, it
124+
First, `println!` calls a Rust macro. If it had called a function instead, it
127125
would be entered as `println` (without the `!`). We’ll discuss Rust macros in
128126
more detail in Chapter 20. For now, you just need to know that using a `!`
129127
means that you’re calling a macro instead of a normal function and that macros
130128
don’t always follow the same rules as functions.
131129

132-
Third, you see the `"Hello, world!"` string. We pass this string as an argument
130+
Second, you see the `"Hello, world!"` string. We pass this string as an argument
133131
to `println!`, and the string is printed to the screen.
134132

135-
Fourth, we end the line with a semicolon (`;`), which indicates that this
133+
Third, we end the line with a semicolon (`;`), which indicates that this
136134
expression is over and the next one is ready to begin. Most lines of Rust code
137135
end with a semicolon.
138136

0 commit comments

Comments
 (0)