Skip to content

Commit

Permalink
update borrowing description
Browse files Browse the repository at this point in the history
  • Loading branch information
hyckomatej committed Oct 23, 2024
1 parent 5eb2388 commit 6332eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2.lesson/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6332eef

Please sign in to comment.