From f7649de155695c0d8ec02c1d8d7d141b9f3c5c38 Mon Sep 17 00:00:00 2001 From: Tom Passarelli Date: Thu, 16 Oct 2025 02:56:47 +0000 Subject: [PATCH] Fix typo in ownership explanation Corrected "first were used" to "first was used" --- src/ch04-01-what-is-ownership.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch04-01-what-is-ownership.md b/src/ch04-01-what-is-ownership.md index bf41f116d2..a5e08bdd96 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -262,7 +262,7 @@ This program is more involved, so make sure you follow each step: ### Variables Cannot Be Used After Being Moved -The string program helps illustrate a key safety principle for ownership. Imagine that `first` were used in `main` after calling `add_suffix`. We can simulate such a program and see the undefined behavior that results: +The string program helps illustrate a key safety principle for ownership. Imagine that `first` was used in `main` after calling `add_suffix`. We can simulate such a program and see the undefined behavior that results: ```aquascope,interpreter,shouldFail fn main() { @@ -339,4 +339,4 @@ We have emphasized not just _how_ Rust's safeguards work, but _why_ they avoid u [^pointer-management]: In another sense, ownership is a discipline of *pointer* management. But we haven't described yet about how to create pointers to anywhere other than the heap. We'll get there in the next section. [`NameError`]: https://docs.python.org/3/library/exceptions.html#NameError -[`ReferenceError`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError \ No newline at end of file +[`ReferenceError`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError