Skip to content

docs(ch00): remove duplicated sentence in chapter 0 introduction#4676

Open
MoustaphaCamara wants to merge 1 commit intorust-lang:mainfrom
MoustaphaCamara:docs/ch00-remove-duplicate-sentence
Open

docs(ch00): remove duplicated sentence in chapter 0 introduction#4676
MoustaphaCamara wants to merge 1 commit intorust-lang:mainfrom
MoustaphaCamara:docs/ch00-remove-duplicate-sentence

Conversation

@MoustaphaCamara
Copy link
Copy Markdown

The sentence was already present at line 183.

In most situations, we’ll lead you to the correct version of any code that
doesn’t compile.

I kept the version introduced most recently (per git blame), which includes the mention of Ferris.

In most situations, we’ll lead you to the correct version of any code
that doesn’t compile. Ferris will also help you distinguish code that isn’t
meant to work:

The sentence was already present at line 183.
@Clozent
Copy link
Copy Markdown

Clozent commented Mar 16, 2026

I took a look at the file's commit history, and I've noticed that the line you removed is actually "the original", with the sentence above the table being added in 112ceae.
I don't know anything about how the book should be formatted, but I think removing the newer copy instead should be considered.

@MoustaphaCamara
Copy link
Copy Markdown
Author

I see your point. As I mentioned, I felt the newer version was more complete and better placed, which is why I suggested removing the one under the table instead.

Maybe this could be a good in-between? Keeping original sentence below the table, and keeping Ferris mention above.

diff --git a/src/ch00-00-introduction.md b/src/ch00-00-introduction.md
index 31e9823a..d5636731 100644
--- a/src/ch00-00-introduction.md
+++ b/src/ch00-00-introduction.md
@@ -180,9 +180,7 @@ As such, we’ll provide many examples that don’t compile along with the error
 message the compiler will show you in each situation. Know that if you enter
 and run a random example, it may not compile! Make sure you read the
 surrounding text to see whether the example you’re trying to run is meant to
-error. In most situations, we’ll lead you to the correct version of any code
-that doesn’t compile. Ferris will also help you distinguish code that isn’t
-meant to work:
+error. Ferris will also help you distinguish code that isn’t meant to work:
 
 | Ferris                                                                                                           | Meaning                                          |
 | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
@@ -190,6 +188,9 @@ meant to work:
 | <img src="img/ferris/panics.svg" class="ferris-explain" alt="Ferris throwing up their hands"/>                   | This code panics!                                |
 | <img src="img/ferris/not_desired_behavior.svg" class="ferris-explain" alt="Ferris with one claw up, shrugging"/> | This code does not produce the desired behavior. |
 
+In most situations, we’ll lead you to the correct version of any code
+that doesn’t compile.
+
 ## Source Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants