diff options
Diffstat (limited to 'lib/model/content.ml')
| -rw-r--r-- | lib/model/content.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/model/content.ml b/lib/model/content.ml index 7b9d9a4..a5e5c10 100644 --- a/lib/model/content.ml +++ b/lib/model/content.ml @@ -32,7 +32,8 @@ let fields : 'a t -> 'a Field.t Seq.t = let find_target : 'a t -> string -> 'a option = fun t name -> let feature_opt = - Seq.find (fun f -> String.equal (Identifier.to_string (Field.name f)) name) + Seq.find + (fun f -> String.equal (Identifier.to_string (Field.name f)) name) (fields t) in @@ -40,5 +41,5 @@ let find_target : 'a t -> string -> 'a option = let* feature : 'a Field.t = feature_opt in let (T feature_type) = Field.type_ feature in match feature_type with - | MonoReference t | MultiReference t -> Some t.Typ.t + | MonoReference t | MultiReference t -> Some t.Types.t | Integer | Text -> None |
