Skip to content

Commit

Permalink
Update linear-types.adoc (starkware-libs#4508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akare123 authored Dec 16, 2023
1 parent 9969b99 commit fd81ff4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ fn main() {
}
```

Note: the snapshot operator `@` (See the docs about snapshot) is not considered moving a value.
Note: the snapshot operator `@` (See the docs about snapshot) is considered not moving a value.

== Clone
Sometime a value can't be trivially copied, but we can still use code to build a of copy it.
Sometime a value can't be trivially copied, but we can still use code to build a copy of it.
For example, a value containing an `Array` cannot be copied, but we can still clone it by cloning
the array it contains with `.clone()`.
This can be done by implementing or deriving the `Clone` trait. The derived implementation requires
Expand Down

0 comments on commit fd81ff4

Please sign in to comment.