浏览代码

Fix typo of Diane's name

Those two American kids are just growing up as fast as they can, huh?
Dave Rolsky 3 年之前
父节点
当前提交
31bd010226
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/guide/src/elements/conditional_rendering.md

+ 1 - 1
docs/guide/src/elements/conditional_rendering.md

@@ -61,7 +61,7 @@ We can even match against values:
 fn App(cx: Scope)-> Element {
     match get_name() {
         "jack" => cx.render(rsx!( "Hey Jack, how's Diane?" )),
-        "diane" => cx.render(rsx!( "Hey Diana, how's Jack?" )),
+        "diane" => cx.render(rsx!( "Hey Diane, how's Jack?" )),
         name => cx.render(rsx!( "Hello, {name}!" )),
     }
 }