Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve documentation of Bigarray.Genarray.map_file #6810
Original bug ID: 6810
It should mention that the function raises Sys_error in case of error.
Comment author: @mshinwell
It looks like it can raise Invalid_argument or Failure, as well as Sys_error. However it appears that an error arising from a failure to map (or some other system call that is used) is always reported as Sys_error. The remainder arise from validation of arguments.