From 8f08d6bc860a14866164e65ce38015c14f4e1c14 Mon Sep 17 00:00:00 2001 From: Lucas Franca Date: Fri, 20 Jun 2025 21:06:44 -0300 Subject: [PATCH] Move `usages` folder to `usage` (#19757) # Objective There were 2 folders inside of `examples`, each with 1 example, and with similar folder names. ## Solution Move the example in the `usages` folder to `usage`. ## Testing `cargo run -p ci` --- Cargo.toml | 2 +- examples/README.md | 2 +- examples/{usages => usage}/context_menu.rs | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename examples/{usages => usage}/context_menu.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 532860125e..ca29624ef9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -607,7 +607,7 @@ web-sys = { version = "0.3", features = ["Window"] } [[example]] name = "context_menu" -path = "examples/usages/context_menu.rs" +path = "examples/usage/context_menu.rs" doc-scrape-examples = true [package.metadata.example.context_menu] diff --git a/examples/README.md b/examples/README.md index bccadd438e..7b21d15da3 100644 --- a/examples/README.md +++ b/examples/README.md @@ -584,7 +584,7 @@ Example | Description Example | Description --- | --- -[Context Menu](../examples/usages/context_menu.rs) | Example of a context menu +[Context Menu](../examples/usage/context_menu.rs) | Example of a context menu [Cooldown](../examples/usage/cooldown.rs) | Example for cooldown on button clicks ## Window diff --git a/examples/usages/context_menu.rs b/examples/usage/context_menu.rs similarity index 100% rename from examples/usages/context_menu.rs rename to examples/usage/context_menu.rs