Basic docs cleanups

This commit is contained in:
Jonathan Kelley committed 2024-03-27 17:06:10 -07:00
1 parent 41c3967052
commit a1c03a461d
3 files changed
+39 -97

No files matched your search

+3 -3
View File
@@ -104,7 +104,7 @@ pub fn component(_args: TokenStream, input: TokenStream) -> TokenStream {
/// ```rust,ignore
/// #[inline_props]
/// fn app(bob: String) -> Element {
/// rsx!("hello, {bob}"))
/// rsx! { "hello, {bob}") }
/// }
///
/// // is equivalent to
@@ -114,8 +114,8 @@ pub fn component(_args: TokenStream, input: TokenStream) -> TokenStream {
/// bob: String,
/// }
///
/// fn app(cx: Scope<AppProps>) -> Element {
/// rsx!("hello, {bob}"))
/// fn app(props: AppProps) -> Element {
/// rsx! { "hello, {bob}") }
/// }
/// ```
#[proc_macro_attribute]