book icon indicating copy to clipboard operation
book copied to clipboard

Typo in Chapter 3. under "Scalar Types" Heading...

Open lirtistan opened this issue 2 years ago • 3 comments

URL to the section(s) of the book with this problem:

https://doc.rust-lang.org/book/ch03-02-data-types.html#scalar-types

Description of the problem:

A scalar type represents a single value. Rust has four primary scalar types: integers, floating-point numbers, Booleans, and characters. You may recognize these from other programming languages. Let’s jump into how they work in Rust.

Suggested fix:

A scalar type represents a single value. Rust has five primary scalar types: integers, floating-point numbers, Booleans, and characters. You may recognize these from other programming languages. Let’s jump into how they work in Rust.

I'm pretty sure that whould fix it. ❤️

lirtistan avatar Jul 25 '24 08:07 lirtistan

Please be gentle with me, i'm learning Rust RN.

lirtistan avatar Jul 25 '24 08:07 lirtistan

There is no error in the original text, there are four primary scalar types. They are integers, floating-point numbers, Booleans, and characters.

LinusChen-yf avatar Jul 25 '24 16:07 LinusChen-yf

Sorry i misread the floating-point numbers part. I read them as floating-point and numbers. My fault.

lirtistan avatar Jul 25 '24 16:07 lirtistan