X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/30fb994332d6d62ffd199e6e7b45b4a5c84abf83..306776311fd5ec57a462ea227c40ba0acb2fec73:/src/part14.rs 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 {