diff --git a/doc/docs.md b/doc/docs.md index af13e8cbee..1b56ea188b 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -1762,10 +1762,17 @@ To do the opposite, use `!in`. nums := [1, 2, 3] println(1 in nums) // true println(4 !in nums) // true +``` + +> **Note** +> `in` checks if map contains a key, not a value. + +```v m := { 'one': 1 'two': 2 } + println('one' in m) // true println('three' !in m) // true ```