Skip to content

Commit 2ac5eec

Browse files
chore(sidekick/rust): Improvements in RPC sample generation (#3520)
This includes: - Fixing one typo in sidekick documentation found by @coryan - Applying one import suggestion made by @dbolduc
1 parent 0e4f96f commit 2ac5eec

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

internal/sidekick/api/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ type AIPStandardGetInfo struct {
388388
}
389389

390390
// AIPStandardGetInfo returns information relevant to a get operation that is like
391-
// a get operation as defined by AIP-131, if the method is such and operation.
391+
// a get operation as defined by AIP-131, if the method is such an operation.
392392
func (m *Method) AIPStandardGetInfo() *AIPStandardGetInfo {
393393
// A get operation is always a simple operation that returns a resource.
394394
if !m.IsSimple() || m.InputType == nil || m.ReturnsEmpty || m.OutputType.Resource == nil {

internal/sidekick/rust/templates/common/client_method_samples/client_method_sample.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ limitations under the License.
1919
/// # Example
2020
/// ```
2121
/// # use {{Service.Model.Codec.PackageNamespace}}::client::{{Service.Codec.Name}};
22+
/// use {{Service.Model.Codec.PackageNamespace}}::Result;
2223
/// async fn sample(
2324
{{> /templates/common/client_method_samples/parameters}}
24-
/// ) -> gax::Result<()> {
25+
/// ) -> Result<()> {
2526
{{#ReturnsEmpty}}
2627
/// client
2728
/// .{{Codec.Name}}()

0 commit comments

Comments
 (0)