Skip to content

Commit d35f6a1

Browse files
authored
Merge pull request #307 from reynir/Cstruct.len-docs
Use Cstruct.length in docs
2 parents 4f6f105 + 855798d commit d35f6a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cstruct.mli

+2-2
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,10 @@ val to_hex_string : ?off:int -> ?len:int -> t -> string
365365
val to_bytes: ?off:int -> ?len:int -> t -> bytes
366366
(** [to_bytes ~off ~len t] will allocate a fresh OCaml [bytes] and copy the
367367
contents of the cstruct starting at offset [off] (default [0]) of length
368-
[len] (default [Cstruct.len t - off]) into it, and return that bytes.
368+
[len] (default [Cstruct.length t - off]) into it, and return that bytes.
369369
370370
@raise Invalid_argument if [off] or [len] is negative, or
371-
[Cstruct.len str - off] < [len]. *)
371+
[Cstruct.length str - off] < [len]. *)
372372

373373
module BE : sig
374374

0 commit comments

Comments
 (0)