diff --git a/lib/cstruct.mli b/lib/cstruct.mli index fd5b081..7be1c8c 100644 --- a/lib/cstruct.mli +++ b/lib/cstruct.mli @@ -279,7 +279,7 @@ val set_uint8: t -> int -> uint8 -> unit @raise Invalid_argument if the offset exceeds cstruct length. *) val sub: t -> int -> int -> t -(** [sub cstr off len] is [{ t with off = t.off + off; len }] +(** [sub cstr off len] is [{ cstr with off = t.off + off; len }] @raise Invalid_argument if the offset exceeds cstruct length. *) val sub_copy: t -> int -> int -> t