Skip to content

Commit 0ea9828

Browse files
authored
Merge pull request #2788 from jchavarri/docs-fixes
Small documentation fixes
2 parents cb3798b + 6bfa2ae commit 0ea9828

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

jscomp/others/belt_List.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ val tailExn: 'a t -> 'a t
8484

8585
val add: 'a t -> 'a -> 'a t
8686
(**
87-
[add xs y] adds [y] to the end of list [xs]
87+
[add xs y] adds [y] to the beginning of list [xs]
8888
8989
@example{[
9090
add [1] 3 = [3;1];;

jscomp/others/belt_MapDict.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ val set:
162162
('a, 'b, 'id) t -> 'a -> 'b ->
163163
cmp:('a, 'id) cmp ->
164164
('a, 'b, 'id) t
165-
(** [add m x y] returns a map containing the same bindings as
165+
(** [set m x y] returns a map containing the same bindings as
166166
[m], plus a binding of [x] to [y]. If [x] was already bound
167167
in [m], its previous binding disappears. *)
168168

jscomp/others/belt_MapInt.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ val remove: 'v t -> key -> 'v t
9999
val removeMany: 'v t -> key array -> 'v t
100100

101101
val set: 'v t -> key -> 'v -> 'v t
102-
(** [add m x y] returns a map containing the same bindings as
102+
(** [set m x y] returns a map containing the same bindings as
103103
[m], plus a binding of [x] to [y]. If [x] was already bound
104104
in [m], its previous binding disappears. *)
105105

jscomp/others/belt_MapString.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ val remove: 'v t -> key -> 'v t
9999
val removeMany: 'v t -> key array -> 'v t
100100

101101
val set: 'v t -> key -> 'v -> 'v t
102-
(** [add m x y] returns a map containing the same bindings as
102+
(** [set m x y] returns a map containing the same bindings as
103103
[m], plus a binding of [x] to [y]. If [x] was already bound
104104
in [m], its previous binding disappears. *)
105105

jscomp/others/belt_MutableMapInt.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ val remove: 'a t -> key -> unit
115115
val removeMany: 'a t -> key array -> unit
116116

117117
val set: 'a t -> key -> 'a -> unit
118-
(** [add m x y] do the in-place modification, return
118+
(** [set m x y] do the in-place modification, return
119119
[m] for chaining. If [x] was already bound
120120
in [m], its previous binding disappears. *)
121121

jscomp/others/belt_MutableMapString.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ val remove: 'a t -> key -> unit
115115
val removeMany: 'a t -> key array -> unit
116116

117117
val set: 'a t -> key -> 'a -> unit
118-
(** [add m x y] do the in-place modification, return
118+
(** [set m x y] do the in-place modification, return
119119
[m] for chaining. If [x] was already bound
120120
in [m], its previous binding disappears. *)
121121

jscomp/others/map.cppo.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ val remove: 'v t -> key -> 'v t
103103
val removeMany: 'v t -> key array -> 'v t
104104

105105
val set: 'v t -> key -> 'v -> 'v t
106-
(** [add m x y] returns a map containing the same bindings as
106+
(** [set m x y] returns a map containing the same bindings as
107107
[m], plus a binding of [x] to [y]. If [x] was already bound
108108
in [m], its previous binding disappears. *)
109109

jscomp/others/mapm.cppo.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ val remove: 'a t -> key -> unit
118118
val removeMany: 'a t -> key array -> unit
119119

120120
val set: 'a t -> key -> 'a -> unit
121-
(** [add m x y] do the in-place modification, return
121+
(** [set m x y] do the in-place modification, return
122122
[m] for chaining. If [x] was already bound
123123
in [m], its previous binding disappears. *)
124124

0 commit comments

Comments
 (0)