From 83cd7ab67b39f108de5172d2bddf8b574a1f5d9e Mon Sep 17 00:00:00 2001 From: Fabian Bornhofen Date: Thu, 12 Jan 2023 11:27:57 +0100 Subject: [PATCH] Fix typo in borrowing.md --- src/ownership/borrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ownership/borrowing.md b/src/ownership/borrowing.md index cb104645..fda32e1c 100644 --- a/src/ownership/borrowing.md +++ b/src/ownership/borrowing.md @@ -25,7 +25,7 @@ fn main() {
Notes on stack returns: -* Demonstrate that the return from `add` is cheap because the compiler can eliminate the copy operation. Change the above code to print stack addresses and run it on the [Playground](https://play.rust-lang.org/). In the "DEBUG" optimization level, the addresses should change, while the stay the same when changning to the "RELEASE" setting: +* Demonstrate that the return from `add` is cheap because the compiler can eliminate the copy operation. Change the above code to print stack addresses and run it on the [Playground](https://play.rust-lang.org/). In the "DEBUG" optimization level, the addresses should change, while the stay the same when changing to the "RELEASE" setting: ```rust,editable #[derive(Debug)]