X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/375923e203d323dadc639434ebc1f29530f4ac2a..fa343b9549ed103c387dc84fd581c4e69f418077:/src/part15.rs?ds=sidebyside diff --git a/src/part15.rs b/src/part15.rs index e646d34..e22d507 100644 --- a/src/part15.rs +++ b/src/part15.rs @@ -28,7 +28,7 @@ use std::time::Duration; //@ Rather than giving every field a name, a struct can also be defined by just giving a sequence //@ of types (similar to how a variant of an `enum` is defined). This is called a *tuple struct*. //@ It is often used when constructing a *newtype*, as we do here: `ConcurrentCounter` is -//@ essentially just a new name for `Arc>`. However, is is a locally declared types, +//@ essentially just a new name for `Arc>`. However, it is a locally declared types, //@ so we can give it an inherent implementation and implement traits for it. Since the field is //@ private, nobody outside this module can even know the type we are wrapping.