summaryrefslogtreecommitdiff
path: root/sid.mli
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2018-10-29 00:48:03 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-10-30 01:15:03 +0100
commit269cef804819e9aef1c2d6642b26c87f306cb176 (patch)
treeb7a3b118ecafb06d7e3350690c3c99f52681f67a /sid.mli
parent7aa81d2a490e161082f3c38c9d0e806d841caca2 (diff)
downloadocaml-sid-269cef804819e9aef1c2d6642b26c87f306cb176.tar.gz
sid: sid_test: move conversion functions to result
Get rid of all “StringFmt” APIs involving exceptions. There is now only the “decode” function which returns a result type.
Diffstat (limited to 'sid.mli')
-rw-r--r--sid.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/sid.mli b/sid.mli
index 23c4a71..cffc0e9 100644
--- a/sid.mli
+++ b/sid.mli
@@ -11,7 +11,7 @@ val get_sub_auths : t -> sub_auths
module StringFmt :
sig
- val decode : string -> (t, string result)
+ val decode : string -> (t, string) result
val encode : t -> string
end
@@ -48,6 +48,6 @@ module WellKnown :
end
end
-val of_string : string -> t
+val of_string : string -> (t, string) result
val to_string : t -> string