Skip to content

Commit b1aa834

Browse files
committed
docs(stackable-operator): Improve docs
1 parent 1d7b575 commit b1aa834

File tree

1 file changed

+4
-5
lines changed
  • crates/stackable-operator/src/commons/s3

1 file changed

+4
-5
lines changed

crates/stackable-operator/src/commons/s3/crd.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,13 @@ impl AwsRegion {
123123
/// Example usage:
124124
///
125125
/// ```
126-
/// # fn set_property(key: &str, value: String) {
127-
/// # }
128-
///
126+
/// # use stackable_operator::commons::s3::AwsRegion;
127+
/// # fn set_property(key: &str, value: String) {}
129128
/// # fn example(aws_region: AwsRegion) {
130-
/// aws_region.name().and_then(|region_name| {
129+
/// if let Some(region_name) = aws_region.name() {
131130
/// // set some propery if the region is set, or is the default.
132131
/// set_property("aws.region", region_name);
133-
/// });
132+
/// };
134133
/// # }
135134
/// ```
136135
pub fn name(self) -> Option<String> {

0 commit comments

Comments
 (0)