mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-07-07 03:27:13 -06:00
tried out obsidian, started ch 6.2
This commit is contained in:
@ -6,9 +6,9 @@
|
||||
1. When owner goes out of scope, the value will be dropped
|
||||
|
||||
# Scope
|
||||
Range in which a veraible is valid, noramlly indicated by a {inside is a scope}
|
||||
Range in which a variable is valid, normally indicated by a {inside is a scope}
|
||||
|
||||
Variables are only vaid between the time they are decalred and the end of a scope
|
||||
Variables are only valid between the time they are declared and the end of a scope
|
||||
|
||||
# Shallow Copy
|
||||
This causes a move (shallow copy) to s2 where s2 has the value previously owned by s1
|
||||
|
Reference in New Issue
Block a user