X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/801f2b59728fba1e13d3e34a08457b812f8c0f56..5c86632a09410065f7ed67d8c965999edd4172a3:/src/part15.rs?ds=inline 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.