Skip to content

Commit b535e79

Browse files
FIX doc error
1 parent a44a79f commit b535e79

File tree

1 file changed

+4
-4
lines changed
  • codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/client

1 file changed

+4
-4
lines changed

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/client/FluentClientGenerator.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ class FluentClientGenerator(
313313
/// This function replaces the parameter with new one.
314314
/// It is useful when you want to replace the existing data with de-serialized data.
315315
/// ```rust
316-
/// async {
317-
/// let deserialized_parameters: $inputBuilderType = serde_json::from_str(parameters_written_in_json).unwrap();
318-
/// let outcome: #{OperationOutput} = client.$fnName().set_fields(&deserialized_parameters).send().await;
319-
/// }
316+
/// let result_future = async {
317+
/// let deserialized_parameters: $inputBuilderType = serde_json::from_str("some json data").unwrap();
318+
/// client.$fnName().set_fields(&deserialized_parameters).send().await
319+
/// };
320320
/// ```
321321
pub fn set_fields(mut self, data: $inputBuilderType) -> Self {
322322
self.inner = data;

0 commit comments

Comments
 (0)