Skip to content

Commit b2a4966

Browse files
committed
doc: add throws part
1 parent e7bad94 commit b2a4966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Firestore/Swift/Source/AsyncAwait/CollectionReference+AsyncAwait.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public extension CollectionReference {
5151
/// - Parameters:
5252
/// - value: An instance of `Encodable` to be encoded to a document.
5353
/// - encoder: An encoder instance to use to run the encoding.
54+
/// - Throws: `Error` if the backend rejected the write.
5455
/// - Returns: A `DocumentReference` pointing to the newly created document.
5556
@discardableResult
5657
func addDocument<T: Encodable>(from value: T,

0 commit comments

Comments
 (0)