docs(pubsublite): associate examples with the correct function (#7827)
diff --git a/pubsublite/pscompat/example_test.go b/pubsublite/pscompat/example_test.go
index 4a4c8e7..ab9f88e 100644
--- a/pubsublite/pscompat/example_test.go
+++ b/pubsublite/pscompat/example_test.go
@@ -68,7 +68,7 @@
// This example illustrates how to configure OAuth tokens to be refreshed 5
// minutes before they expire, in order to mitigate delays which may occur
// during refresh.
-func ExamplePublisherClient_Publish_earlyTokenRefresh() {
+func ExampleNewPublisherClient_earlyTokenRefresh() {
ctx := context.Background()
const topic = "projects/my-project/locations/region-or-zone/topics/my-topic"
params := google.CredentialsParams{
@@ -116,7 +116,7 @@
// that batching settings apply per partition. If BufferedByteLimit is being
// used to bound memory usage, keep in mind the number of partitions in the
// topic.
-func ExamplePublisherClient_Publish_batchingSettings() {
+func ExampleNewPublisherClientWithSettings_batchingSettings() {
ctx := context.Background()
const topic = "projects/my-project/locations/region-or-zone/topics/my-topic"
settings := pscompat.PublishSettings{
@@ -287,7 +287,7 @@
// being processed at once, you can bound your program's resource consumption.
// Note that ReceiveSettings apply per partition, so keep in mind the number of
// partitions in the associated topic.
-func ExampleSubscriberClient_Receive_maxOutstanding() {
+func ExampleNewSubscriberClientWithSettings_maxOutstanding() {
ctx := context.Background()
const subscription = "projects/my-project/locations/region-or-zone/subscriptions/my-subscription"
settings := pscompat.ReceiveSettings{
@@ -317,7 +317,7 @@
// SubscriberClient should connect to. If not specified, the SubscriberClient
// will use Pub/Sub Lite's partition assignment service to automatically
// determine which partitions it should connect to.
-func ExampleSubscriberClient_Receive_manualPartitionAssignment() {
+func ExampleNewSubscriberClientWithSettings_manualPartitionAssignment() {
ctx := context.Background()
const subscription = "projects/my-project/locations/region-or-zone/subscriptions/my-subscription"
settings := pscompat.ReceiveSettings{