about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 0efe7e3fdf4..057944484ba 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -1025,6 +1025,11 @@ box, while the owner holds onto a pointer to it:
     list -> | Cons | 1 | ~ | -> | Cons | 2 | ~ | -> | Cons | 3 | ~ | -> | Nil          |
             +--------------+    +--------------+    +--------------+    +--------------+
 
+> Note: the above diagram shows the logical contents of the enum. The actual
+> memory layout of the enum may vary. For example, for the `List` enum shown
+> above, Rust guarantees that there will be no enum tag field in the actual
+> structure. See the language reference for more details.
+
 An owned box is a common example of a type with a destructor. The allocated
 memory is cleaned up when the box is destroyed.