X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/86202b038253b678e6e11a4c4758fe1c24592ae1..cc52afa7f2b54d29870ff16f1f11970dd38c1940:/src/part14.rs?ds=inline diff --git a/src/part14.rs b/src/part14.rs index 3519d43..45044af 100644 --- a/src/part14.rs +++ b/src/part14.rs @@ -132,7 +132,7 @@ Options: //@ stores the address of the character data, and their length. String literals like "this one" are //@ of type `&'static str`: They point right to the constant section of the binary, so //@ the borrow is valid for the entire program. The bytes pointed to by `pattern`, on the other hand, are owned by someone else, - //@ so we call `to_string` on it to copy the string data into a buffer on the heap owned by a String we own. + //@ and we call `to_string` on it to copy the string data into a buffer on the heap that we own. let mode = if count { OutputMode::Count } else if sort {