Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CArray.of_string comment to match reality #716

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/ctypes/ctypes.mli
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ sig
[n] between [0] and [(CArray.length a - 1)] is not performed. *)

val of_string : string -> char t
(** [of_string s] builds an array of the same length as [s], and writes
the elements of [s] to the corresponding elements of the array. *)
(** [of_string s] builds an array of the same length as [s] plus one, and writes
the elements of [s] to the corresponding elements of the array with the
null character '\0' as a last element. *)

val of_list : 'a typ -> 'a list -> 'a t
(** [of_list t l] builds an array of type [t] of the same length as [l], and
Expand Down