summaryrefslogtreecommitdiffstats
path: root/ocaml/examples/guestfs-ocaml.pod
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml/examples/guestfs-ocaml.pod')
-rw-r--r--ocaml/examples/guestfs-ocaml.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/ocaml/examples/guestfs-ocaml.pod b/ocaml/examples/guestfs-ocaml.pod
index 019e84a3..139997b8 100644
--- a/ocaml/examples/guestfs-ocaml.pod
+++ b/ocaml/examples/guestfs-ocaml.pod
@@ -9,13 +9,13 @@ guestfs-ocaml - How to use libguestfs from OCaml
Module style:
let g = Guestfs.create () in
- Guestfs.add_drive g ~format:"raw" ~readonly:true "disk.img";
+ Guestfs.add_drive_opts g ~format:"raw" ~readonly:true "disk.img";
Guestfs.launch g;
Object-oriented style:
let g = new Guestfs.guestfs () in
- g#add_drive ~format:"raw" ~readonly:true "disk.img";
+ g#add_drive_opts ~format:"raw" ~readonly:true "disk.img";
g#launch ();
ocamlfind opt prog.ml -package guestfs -linkpkg -o prog