diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/customize/NamedSectionGenerator.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/customize/NamedSectionGenerator.kt index 0c13ba76509b081901288e62bfbe560ef782e3f3..c895b66f0543e6d169afd4bcbf07781341382108 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/customize/NamedSectionGenerator.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/customize/NamedSectionGenerator.kt @@ -24,19 +24,9 @@ import software.amazon.smithy.rust.codegen.rustlang.writable abstract class Section(val name: String) /** - * A named section generator allows customization via a predefined set of named sections. Implementors may either: - * 1. Override section and use a `when` clause to handle each section individually - * 2. Call `registerSection { ... }` to register individual sections on demand. + * A named section generator allows customization via a predefined set of named sections. * - * ```rust - * struct Config { - * /* section:ConfigStruct */ - * make_token: TokenProvider - * /* endsection:ConfigStruct */ - * } - * ``` - * - * In cases where the generated code is static, this will improve readability. + * Implementors MUST override section and use a `when` clause to handle each section individually */ abstract class NamedSectionGenerator { abstract fun section(section: T): Writable