diff --git a/doc/world_format.txt b/doc/world_format.txt
index 9255fa8c07a49f1d89981fccdc9345da6a9bd208..5be1f3913d9cec40dd21b4c0b386f1cac3275ded 100644
--- a/doc/world_format.txt
+++ b/doc/world_format.txt
@@ -312,7 +312,7 @@ if map format version >= 23:
     u32 num_vars
     foreach num_vars:
       u16 key_len
-      u8[name_len] key
+      u8[key_len] key
       u32 val_len
       u8[val_len] value
       serialized inventory