Book: Typo in the Introduction

Created on 12 Dec 2018  路  5Comments  路  Source: rust-lang/book

In the 13th paragraph of the section "How to Use This Book", it reads:

As such, we鈥檒l provide many examples of code that doesn鈥檛 compile along with the error message the compiler will show you in each situation.

It should be:

(...) many examples of code that _don't_ compile (...)

Bug

Most helpful comment

I decided to remove "of code" to make this discussion moot :)

All 5 comments

Ah yes, this is technically correct! Nice catch, even our copyeditors didn't notice.

Technically it depends on whether "that doesn't compile" goes with "examples" or "code"......

Now I'm having second thoughts... In the end it's really down to the authors. Do they mean that examples of code don't compile, or that code [in the examples] doesn't compile? 馃

Technically it depends on whether "that doesn't compile" goes with "examples" or "code"......

Yes. But my reading is that "of code" is a dependent clause. It's because you can read the sentence without it:

As such, we鈥檒l provide many examples that doesn鈥檛 compile

and this is clearly wrong.

I guess you could also argue that the whole thing is one big dependent clause... this is where my grammar expertise ends 馃槅

I decided to remove "of code" to make this discussion moot :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

serialhex picture serialhex  路  4Comments

jvivian picture jvivian  路  4Comments

devimc picture devimc  路  4Comments

istarus picture istarus  路  4Comments

zeenix picture zeenix  路  4Comments