nrc / r4cppp

Rust for C++ programmers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspicious typo in Data Types

liurnd opened this issue · comments

In the chapter: Data Types

Sometimes whilst an object is logically mutable, it has parts which need to be internally mutable.

It should be ... is logically immutable ... according to the example.

I need to look at the offending paragraph more closely, but I suspect it should be rewritten. I think the point I was trying to make is that Rust thinks an object is immutable, but it has internal mutability. In retrospect I'm not sure if that is logically mutable or immutable.

Thanks for the bug report!