From 5a2daa5cb5db6566c828790ac95a41a084a5ced9 Mon Sep 17 00:00:00 2001 From: Pouya Yarandi <30620887+pouyayarandi@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:08:44 +0330 Subject: [PATCH] remove `allow developers to ...` in sentences --- Documentation/API.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/API.md b/Documentation/API.md index bcc099c73..5b4d01a56 100644 --- a/Documentation/API.md +++ b/Documentation/API.md @@ -736,8 +736,8 @@ concern because of Swift's common use for mobile applications. ### Merging Two Messages -The `merge(from:fieldMask:)` function in Swift Protobuf enables developers -to selectively merge fields from one message into another, guided by a `Google_Protobuf_FieldMask`. +The `merge(from:fieldMask:)` function in Swift Protobuf selectively merges +fields from one message into another, guided by a `Google_Protobuf_FieldMask`. This method is particularly useful when you need to update only specific fields in a message without affecting others. The `merge` function is available as a method on `Message` types and requires two parameters: @@ -801,7 +801,7 @@ The `merge` function operates in-place, meaning it directly modifies `message1`. ### Trimming a Message -The `trim(keeping:)` function allows developers to retain only specific +The `trim(keeping:)` function retains only specific fields in a protocol buffer message while clearing the rest. Consider the `ExampleMessage` structure from the previous example.