Add space between rsx and exclamation point (#2956)

This commit is contained in:
Jonathan Kelley 2024-09-13 06:31:39 -07:00 committed by GitHub
parent 8d68886310
commit c7124e41fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 41 additions and 41 deletions

View file

@ -106,7 +106,7 @@ pub trait Context<T, E>: private::Sealed {
/// "Error parsing number: {error}"
/// }
/// })?;
/// todo!()
/// unimplemented!()
/// }
/// ```
fn show(self, display_error: impl FnOnce(&E) -> Element) -> Result<T>;
@ -120,7 +120,7 @@ pub trait Context<T, E>: private::Sealed {
/// // You can bubble up errors with `?` inside components, and event handlers
/// // Along with the error itself, you can provide a way to display the error by calling `context`
/// let number = "-1234".parse::<usize>().context("Parsing number inside of the NumberParser")?;
/// todo!()
/// unimplemented!()
/// }
/// ```
fn context<C: Display + 'static>(self, context: C) -> Result<T>;
@ -134,7 +134,7 @@ pub trait Context<T, E>: private::Sealed {
/// // You can bubble up errors with `?` inside components, and event handlers
/// // Along with the error itself, you can provide a way to display the error by calling `context`
/// let number = "-1234".parse::<usize>().with_context(|| format!("Timestamp: {:?}", std::time::Instant::now()))?;
/// todo!()
/// unimplemented!()
/// }
/// ```
fn with_context<C: Display + 'static>(self, context: impl FnOnce() -> C) -> Result<T>;

View file

@ -25,13 +25,13 @@ pub fn vdom_is_rendering() -> bool {
/// fn Component() -> Element {
/// let request = spawn(async move {
/// match reqwest::get("https://api.example.com").await {
/// Ok(_) => todo!(),
/// Ok(_) => unimplemented!(),
/// // You can explicitly throw an error into a scope with throw_error
/// Err(err) => ScopeId::APP.throw_error(err)
/// }
/// });
///
/// todo!()
/// unimplemented!()
/// }
/// ```
pub fn throw_error(error: impl Into<CapturedError> + 'static) {

View file

@ -558,13 +558,13 @@ impl ScopeId {
/// fn Component() -> Element {
/// let request = spawn(async move {
/// match reqwest::get("https://api.example.com").await {
/// Ok(_) => todo!(),
/// Ok(_) => unimplemented!(),
/// // You can explicitly throw an error into a scope with throw_error
/// Err(err) => ScopeId::APP.throw_error(err)
/// }
/// });
///
/// todo!()
/// unimplemented!()
/// }
/// ```
pub fn throw_error(self, error: impl Into<CapturedError> + 'static) {

View file

@ -17,7 +17,7 @@ use serde::{de::DeserializeOwned, Serialize};
/// 1234
/// });
///
/// todo!()
/// unimplemented!()
/// }
/// ```
pub fn use_server_cached<O: 'static + Clone + Serialize + DeserializeOwned>(

View file

@ -40,7 +40,7 @@ use std::future::Future;
///
/// ```rust, no_run
/// # use dioxus::prelude::*;
/// # async fn fetch_article(id: u32) -> String { todo!() }
/// # async fn fetch_article(id: u32) -> String { unimplemented!() }
/// use dioxus::prelude::*;
///
/// fn App() -> Element {

View file

@ -3,17 +3,17 @@ use std::str::FromStr;
#[component]
fn Root() -> Element {
todo!()
unimplemented!()
}
#[component]
fn Test() -> Element {
todo!()
unimplemented!()
}
#[component]
fn Dynamic(id: usize) -> Element {
todo!()
unimplemented!()
}
// Make sure trailing '/'s work correctly