From 6332eefc6dbad76ce96074fc5b15b0b0e6eccc5b Mon Sep 17 00:00:00 2001 From: hyckomatej Date: Wed, 23 Oct 2024 09:23:45 +0200 Subject: [PATCH] update borrowing description --- 2.lesson/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.lesson/README.md b/2.lesson/README.md index 952c5e2..82b1cb2 100644 --- a/2.lesson/README.md +++ b/2.lesson/README.md @@ -173,7 +173,7 @@ First, let’s take a look at the ownership rules. Keep these rules in mind as w ## Borrowing -When a function transfers its control over a variable/value to another function temporarily, for a while, it is called borrowing. This is achieved by passing a reference to the variable **_(& var_name)_** rather than passing the variable/value itself to the function. The ownership of the variable/ value is transferred to the original owner of the variable after the function to which the control was passed completes execution. +When a function transfers its control over a variable/value to another function temporarily, for a while, it is called borrowing. This is achieved by passing a reference to the variable **_(& var_name)_** rather than passing the variable/value itself to the function. ### The Rules of References