X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=generator%2Fgenerator_docstrings.ml;fp=generator%2Fgenerator_docstrings.ml;h=6d242bdcfad5edf8ba6de628e072096e11101a9b;hp=de31aa52d4b808a53964c120634fea63f6a1bb9d;hb=60adf092a8900323c048c94f3f0934be416a3eb6;hpb=70f44cc0ea0bcdd025ed657461e07f6778be44ba diff --git a/generator/generator_docstrings.ml b/generator/generator_docstrings.ml index de31aa5..6d242bd 100644 --- a/generator/generator_docstrings.ml +++ b/generator/generator_docstrings.ml @@ -40,17 +40,17 @@ let danger_will_robinson = "B." -let deprecation_notice flags = +let deprecation_notice ?(prefix = "") flags = try let alt = find_map (function DeprecatedBy str -> Some str | _ -> None) flags in let txt = sprintf "This function is deprecated. -In new code, use the C<%s> call instead. +In new code, use the L call instead. Deprecated functions will not be removed from the API, but the fact that they are deprecated indicates that there are problems -with correct use of these functions." alt in +with correct use of these functions." prefix alt in Some txt with Not_found -> None