Skip to content

Commit

Permalink
Update examples since copyright is now a string option.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed May 26, 2012
1 parent 4c4deb8 commit 0d5b5fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/amp/amp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let () =
(Descriptor.label d)
(Descriptor.name d)
(Descriptor.maker d)
(Descriptor.copyright d);
(match Descriptor.copyright d with Some c -> c | None -> "");
Printf.printf "Found %d descriptors.\n%!" (Array.length (Descriptor.descriptors p));
Printf.printf "Found %d ports:\n%!" (Descriptor.port_count d);
for i = 0 to Descriptor.port_count d - 1 do
Expand Down
2 changes: 1 addition & 1 deletion examples/inspect/inspect.ml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let print_plugin pname =
(Descriptor.label d)
(Descriptor.name d)
(Descriptor.maker d)
(Descriptor.copyright d);
(match Descriptor.copyright d with Some c -> c | None -> "");
print_descr d
)
descr;
Expand Down

0 comments on commit 0d5b5fd

Please sign in to comment.