From c0dbbfc122cf7dd036ad842d46fa075e3e8c9d57 Mon Sep 17 00:00:00 2001 From: Jan Berkel Date: Wed, 15 Mar 2017 22:12:27 +0100 Subject: [PATCH] Fix documentation Closes #266 --- Documentation/Index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Index.md b/Documentation/Index.md index fa3dfeb7..bf8fa796 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -1359,7 +1359,7 @@ For example, to give queries access to [`MobileCoreServices.UTTypeConformsTo`](h ``` swift import MobileCoreServices -let typeConformsTo: (Expression, String) -> Expression = ( +let typeConformsTo: (Expression, Expression) -> Expression = ( try db.createFunction("typeConformsTo", deterministic: true) { UTI, conformsToUTI in return UTTypeConformsTo(UTI, conformsToUTI) } @@ -1371,7 +1371,7 @@ let typeConformsTo: (Expression, String) -> Expression = ( Note `typeConformsTo`’s signature: ``` swift -(Expression, String) -> Expression +(Expression, Expression) -> Expression ``` Because of this, `createFunction` expects a block with the following signature: