diff options
| author | filliatr | 1999-09-09 09:54:12 +0000 |
|---|---|---|
| committer | filliatr | 1999-09-09 09:54:12 +0000 |
| commit | 39bd831ce9866ab71c8fbc1fadced55f17d9a3a9 (patch) | |
| tree | c15e4f935f1323e56d1c5c973f0d1df73fb94046 /lib | |
| parent | 0016ab21e8f9564350a6319126f47313a338c115 (diff) | |
simplifications de code
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@69 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/util.ml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/util.ml b/lib/util.ml index a26cb60d80..8e3eb881f6 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -44,12 +44,10 @@ let parse_section_path s = with | Not_found -> invalid_arg "parse_section_path" in - if len = 0 || String.get s 0 <> '#' then - invalid_arg "parse_section_path" - else - let dirs,n = decoupe_dirs 1 in - let id,k = decoupe_kind n in - dirs,id,k + if len = 0 || String.get s 0 <> '#' then invalid_arg "parse_section_path"; + let dirs,n = decoupe_dirs 1 in + let id,k = decoupe_kind n in + dirs,id,k module Stringmap = Map.Make(struct type t = string let compare = compare end) |
