summaryrefslogtreecommitdiff
path: root/A place is anything that is valid to put on the left-hand side of an assignment.md
diff options
context:
space:
mode:
Diffstat (limited to 'A place is anything that is valid to put on the left-hand side of an assignment.md')
-rw-r--r--A place is anything that is valid to put on the left-hand side of an assignment.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/A place is anything that is valid to put on the left-hand side of an assignment.md b/A place is anything that is valid to put on the left-hand side of an assignment.md
new file mode 100644
index 0000000..cd6317f
--- /dev/null
+++ b/A place is anything that is valid to put on the left-hand side of an assignment.md
@@ -0,0 +1,10 @@
+It is not THE left hand side of an assignment but anything that is valid to put there. But they can appear anywhere from what it looks like.
+
+It includes:
+- variables `a`
+- dereferences of places `*a`
+- Array accesses of places `a[0]`
+- Fields of places `a.0`
+- Any combination of the above
+
+The borrow checker expects a place to have certain permissions depending on the operation. \ No newline at end of file