Don't show a preview for the sample component in the Rust docs

It's not a visual example.
This commit is contained in:
Simon Hausmann 2023-09-19 10:48:46 +02:00 committed by Simon Hausmann
parent efd83e9929
commit cc7ce65c0d

View file

@ -24,7 +24,7 @@ pub mod generated_code {
/// This an example of the API that is generated for a component in `.slint` design markup. This may help you understand
/// what functions you can call and how you can pass data in and out.
/// This is the source code:
/// ```slint
/// ```slint,no-preview
/// export component SampleComponent inherits Window {
/// in-out property<int> counter;
/// // note that dashes will be replaced by underscores in the generated code