Skip to content

Commit 08270b5

Browse files
author
Pouya Yarandi
committed
Add comments
1 parent 37f1872 commit 08270b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/SwiftProtobuf/Message+FieldMask.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ extension Message {
3434
}
3535
}
3636

37+
/// Defines available options for merging two messages.
3738
public enum MergeOption: Equatable {
39+
40+
/// The default merging behavior will append entries from the source
41+
/// repeated field to the destination repeated field. If you only want
42+
/// to keep the entries from the source repeated field, set this flag
43+
/// to true.
3844
case replaceRepeatedFields
3945
}
4046

0 commit comments

Comments
 (0)