@@ -668,7 +668,7 @@ public struct FunctionCallable: Sendable {
668668 fileprivate let user : User
669669
670670 /// :nodoc:
671- @available ( * , deprecated, message: " Explicitly specify . array(arg) " )
671+ @available ( * , deprecated, message: " Specify args separately without wrapping them in an array" )
672672 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
673673 public func dynamicallyCall( withArguments args: [ [ AnyBSON ] ] ) -> Future < AnyBSON , Error > {
674674 return future { promise in
@@ -685,7 +685,7 @@ public struct FunctionCallable: Sendable {
685685
686686 /// The implementation of @dynamicCallable that allows for `Future<AnyBSON, Error>` callable return.
687687 ///
688- /// let cancellable = user.functions.sum(.array([ 1, 2, 3, 4, 5]) )
688+ /// let cancellable = user.functions.sum(1, 2, 3, 4, 5)
689689 /// .sink(receiveCompletion: { result in
690690 /// }, receiveValue: { value in
691691 /// // Returned value from function
@@ -1150,7 +1150,7 @@ public extension User {
11501150@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
11511151extension FunctionCallable {
11521152 /// :nodoc:
1153- @available ( * , deprecated, message: " Explicitly specify . array(arg) " )
1153+ @available ( * , deprecated, message: " Specify args separately without wrapping them in an array" )
11541154 public func dynamicallyCall( withArguments args: [ [ AnyBSON ] ] ) async throws -> AnyBSON {
11551155 let objcArgs = args. first!. map ( ObjectiveCSupport . convertBson)
11561156 let ret = try await user. __callFunctionNamed ( name, arguments: objcArgs)
@@ -1162,7 +1162,7 @@ extension FunctionCallable {
11621162
11631163 /// The implementation of @dynamicMemberLookup that allows for `async await` callable return.
11641164 ///
1165- /// guard case let .int32(sum) = try await user.functions.sum(.array([ 1, 2, 3, 4, 5]) ) else {
1165+ /// guard case let .int32(sum) = try await user.functions.sum(1, 2, 3, 4, 5) else {
11661166 /// return
11671167 /// }
11681168 ///
0 commit comments