Skip to content

Commit 5627944

Browse files
authored
Update components.md, fn RedDiv missed the return type of Element (#643)
Can't pass Rust build without indicating return type of Element
1 parent bc9b447 commit 5627944

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs-src/0.7/src/essentials/ui/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Properties have a special field called "children" that contain a component's chi
252252

253253
```rust
254254
#[component]
255-
fn RedDiv(children: Element) {
255+
fn RedDiv(children: Element) -> Element {
256256
rsx! {
257257
div {
258258
background_color: "red",

0 commit comments

Comments
 (0)