Skip to content

Commit

Permalink
chore: fix docs tests with invalid codeblock (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 authored Dec 12, 2024
1 parent d04fa92 commit c5e88b5
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 24 deletions.
10 changes: 6 additions & 4 deletions crates/amzn-codewhisperer-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_codewhisperer_client::config::BehaviorVersion;
///
/// let config = amzn_codewhisperer_client::Config::builder()
Expand All @@ -1129,7 +1130,7 @@ impl Builder {
/// .build();
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_codewhisperer_client::config::BehaviorVersion;
Expand All @@ -1155,7 +1156,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_codewhisperer_client::config::BehaviorVersion;
///
/// let config = amzn_codewhisperer_client::Config::builder()
Expand All @@ -1164,7 +1166,7 @@ impl Builder {
/// .build();
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_codewhisperer_client::config::BehaviorVersion;
Expand Down
10 changes: 6 additions & 4 deletions crates/amzn-codewhisperer-streaming-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_codewhisperer_streaming_client::config::BehaviorVersion;
///
/// let config = amzn_codewhisperer_streaming_client::Config::builder()
Expand All @@ -1111,7 +1112,7 @@ impl Builder {
/// .build();
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_codewhisperer_streaming_client::config::BehaviorVersion;
Expand All @@ -1137,7 +1138,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_codewhisperer_streaming_client::config::BehaviorVersion;
///
/// let config = amzn_codewhisperer_streaming_client::Config::builder()
Expand All @@ -1146,7 +1148,7 @@ impl Builder {
/// .build();
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_codewhisperer_streaming_client::config::BehaviorVersion;
Expand Down
10 changes: 6 additions & 4 deletions crates/amzn-consolas-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_consolas_client::config::BehaviorVersion;
///
/// let config = amzn_consolas_client::Config::builder()
Expand All @@ -1144,7 +1145,7 @@ impl Builder {
/// .build();
/// let client = amzn_consolas_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_consolas_client::config::BehaviorVersion;
Expand All @@ -1170,7 +1171,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_consolas_client::config::BehaviorVersion;
///
/// let config = amzn_consolas_client::Config::builder()
Expand All @@ -1179,7 +1181,7 @@ impl Builder {
/// .build();
/// let client = amzn_consolas_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_consolas_client::config::BehaviorVersion;
Expand Down
10 changes: 6 additions & 4 deletions crates/amzn-qdeveloper-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_qdeveloper_client::config::BehaviorVersion;
///
/// let config = amzn_qdeveloper_client::Config::builder()
Expand All @@ -1144,7 +1145,7 @@ impl Builder {
/// .build();
/// let client = amzn_qdeveloper_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_qdeveloper_client::config::BehaviorVersion;
Expand All @@ -1170,7 +1171,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_qdeveloper_client::config::BehaviorVersion;
///
/// let config = amzn_qdeveloper_client::Config::builder()
Expand All @@ -1179,7 +1181,7 @@ impl Builder {
/// .build();
/// let client = amzn_qdeveloper_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_qdeveloper_client::config::BehaviorVersion;
Expand Down
10 changes: 6 additions & 4 deletions crates/amzn-qdeveloper-streaming-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_qdeveloper_streaming_client::config::BehaviorVersion;
///
/// let config = amzn_qdeveloper_streaming_client::Config::builder()
Expand All @@ -1126,7 +1127,7 @@ impl Builder {
/// .build();
/// let client = amzn_qdeveloper_streaming_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_qdeveloper_streaming_client::config::BehaviorVersion;
Expand All @@ -1152,7 +1153,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_qdeveloper_streaming_client::config::BehaviorVersion;
///
/// let config = amzn_qdeveloper_streaming_client::Config::builder()
Expand All @@ -1161,7 +1163,7 @@ impl Builder {
/// .build();
/// let client = amzn_qdeveloper_streaming_client::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_qdeveloper_streaming_client::config::BehaviorVersion;
Expand Down
10 changes: 6 additions & 4 deletions crates/amzn-toolkit-telemetry/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_toolkit_telemetry::config::BehaviorVersion;
///
/// let config = amzn_toolkit_telemetry::Config::builder()
Expand All @@ -1064,7 +1065,7 @@ impl Builder {
/// .build();
/// let client = amzn_toolkit_telemetry::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_toolkit_telemetry::config::BehaviorVersion;
Expand All @@ -1090,7 +1091,8 @@ impl Builder {
/// # Examples
///
/// Set the behavior major version to `latest`. This is equivalent to enabling the
/// `behavior-version-latest` cargo feature. ```no_run
/// `behavior-version-latest` cargo feature.
/// ```no_run
/// use amzn_toolkit_telemetry::config::BehaviorVersion;
///
/// let config = amzn_toolkit_telemetry::Config::builder()
Expand All @@ -1099,7 +1101,7 @@ impl Builder {
/// .build();
/// let client = amzn_toolkit_telemetry::Client::from_conf(config);
/// ```
///
///
/// Customizing behavior major version:
/// ```no_run
/// use amzn_toolkit_telemetry::config::BehaviorVersion;
Expand Down

0 comments on commit c5e88b5

Please sign in to comment.