Skip to content

Commit 9f26008

Browse files
authored
Use correct argument name in function description (#17394)
Use `maxMessages` instead of `numMessages` to match the right argument name
1 parent 94316ba commit 9f26008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/messaging/azservicebus/session_receiver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (r *SessionReceiver) newLink(ctx context.Context, session internal.AMQPSess
108108
return nil, link, nil
109109
}
110110

111-
// ReceiveMessages receives a fixed number of messages, up to numMessages.
111+
// ReceiveMessages receives a fixed number of messages, up to maxMessages.
112112
// There are two ways to stop receiving messages:
113113
// 1. Cancelling the `ctx` parameter.
114114
// 2. An implicit timeout (default: 1 second) that starts after the first

0 commit comments

Comments
 (0)