Skip to content

Commit 665dcfc

Browse files
committedSep 17, 2024··
Typo
1 parent 4b08d34 commit 665dcfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/index.mld

+3-2
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,14 @@ Here is a small example of a non-generic map:
207207
{@ocaml[
208208
module IntKey : PatriciaTree.KEY with type t = int = struct
209209
type t = int
210-
let to_int x = x
210+
let to_int x = x (* to_int must be injective and fast *)
211211
end
212212
]}}
213213
{li Use it to instanciate the map/set functors:
214214
{[
215215
module IMap : PatriciaTree.MAP with type key = int
216216
= PatriciaTree.MakeMap(IntKey)
217+
217218
module ISet : PatriciaTree.SET with type elt = int
218219
= PatriciaTree.MakeSet(IntKey)
219220
]}}
@@ -350,7 +351,7 @@ liberty of having a generic type as a key.
350351
end
351352
]}
352353
Note the full polymorphic equality, that returns a GADT term {!PatriciaTree.cmp}
353-
which, when equal ({{!PatriciaTree.Eq}[Eq]}), it is a proof of type equality
354+
which, when equal ({{!PatriciaTree.Eq}[Eq]}), is a proof of type equality
354355
between the type parameters.}
355356
{li We can now instanciate our map functor. Note that in the heterogeneous case,
356357
we must also specify the value type (second functor argument) and how it depends

0 commit comments

Comments
 (0)
Please sign in to comment.