We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7b575 commit b1aa834Copy full SHA for b1aa834
crates/stackable-operator/src/commons/s3/crd.rs
@@ -123,14 +123,13 @@ impl AwsRegion {
123
/// Example usage:
124
///
125
/// ```
126
- /// # fn set_property(key: &str, value: String) {
127
- /// # }
128
- ///
+ /// # use stackable_operator::commons::s3::AwsRegion;
+ /// # fn set_property(key: &str, value: String) {}
129
/// # fn example(aws_region: AwsRegion) {
130
- /// aws_region.name().and_then(|region_name| {
+ /// if let Some(region_name) = aws_region.name() {
131
/// // set some propery if the region is set, or is the default.
132
/// set_property("aws.region", region_name);
133
- /// });
+ /// };
134
/// # }
135
136
pub fn name(self) -> Option<String> {
0 commit comments