mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Fix a few doc tests
This commit is contained in:
parent
3de9efd9ee
commit
5aa92a02b8
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ impl LaunchBuilder {
|
|||
/// #[derive(Default)]
|
||||
/// struct Config;
|
||||
///
|
||||
/// fn my_custom_launcher(root: fn() -> Element, contexts: Vec<Box<dyn Any>>, cfg: Config) {
|
||||
/// fn my_custom_launcher(root: fn() -> Element, contexts: Vec<Box<dyn Fn() -> Box<dyn Any> + Send + Sync>>, cfg: Vec<Box<dyn Any>>) {
|
||||
/// println!("launching with root: {:?}", root());
|
||||
/// loop {
|
||||
/// println!("running...");
|
||||
|
|
|
@ -107,7 +107,7 @@ fn main() {
|
|||
// For any other platform, we just launch the app
|
||||
#[cfg(not(feature = "server"))]
|
||||
fn main() {
|
||||
launch(App);
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
#[component]
|
||||
|
|
Loading…
Reference in a new issue