diff --git a/firestore/swift/firestore-smoketest/PipelineSnippets.swift b/firestore/swift/firestore-smoketest/PipelineSnippets.swift index 8a10500..a739d3d 100644 --- a/firestore/swift/firestore-smoketest/PipelineSnippets.swift +++ b/firestore/swift/firestore-smoketest/PipelineSnippets.swift @@ -519,12 +519,12 @@ public class PipelineSnippets { // https://cloud.google.com/firestore/docs/pipeline/functions/aggregate_functions#max func maxFunction() async throws { - // [START min_function] + // [START max_function] let result = try await db.pipeline() .collection("books") .aggregate([Field("price").maximum().as("maximumPrice")]) .execute() - // [START max_function] + // [END max_function] print(result) } @@ -1040,6 +1040,7 @@ public class PipelineSnippets { // https://cloud.google.com/firestore/docs/pipeline/functions/string_functions#ends_with func endsWithFunction() async throws { + // [START ends_with] let result = try await db.pipeline() .collection("inventory/devices/laptops") .select([ @@ -1047,6 +1048,7 @@ public class PipelineSnippets { .as("16InLaptops") ]) .execute() + // [END ends_with] print(result) }