Skip to content

Commit 1201ee2

Browse files
committed
Update docs
1 parent c8a55a0 commit 1201ee2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

_docs_src/src/dictionaries-2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ let () =
297297
print_s @@ [%sexp_of: (int * string list) list] @@ alist
298298
```
299299

300+
Check out how we can use a regular `string list` for the `v` argument to `Weird_dict.add` even though we specified the type as `String_list.t`. Same thing goes for the return type of the `get` function. It "just works" because of the way we set up the functors earlier. Nice!
301+
300302
Run it, and if all goes well, you should see something like this:
301303

302304
```

0 commit comments

Comments
 (0)