Skip to content

Commit b3dc1e5

Browse files
committed
docs: fix FAQ line breaks
1 parent 823fbf3 commit b3dc1e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/egui/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,16 @@
317317
//!
318318
//! ## FAQ
319319
//!
320-
//! **How do I store state between frames?**
320+
//! **How do I store state between frames?**\
321321
//! Keep your own `struct` with the values you mutate (e.g. selected enum variants, slider numbers) and update it inside `App::update`. egui only borrows your data temporarily each frame - it never stores it for you.
322322
//!
323-
//! **Why does my layout jitter the first frame?**
323+
//! **Why does my layout jitter the first frame?**\
324324
//! Some widgets (e.g. [`Grid`]) need a frame of measurements before they can allocate perfectly. Call [`Context::request_discard`] or keep the widget alive so the second frame reuses the cached layout.
325325
//!
326-
//! **How do I make widgets span the full width?**
326+
//! **How do I make widgets span the full width?**\
327327
//! Use helpers like [`Ui::vertical_centered_justified`] or wrap content with [`Ui::with_layout`] and [`Layout::top_down`]/[`Layout::left_to_right`] to control justification explicitly.
328328
//!
329-
//! **Where can I see more complete examples?**
329+
//! **Where can I see more complete examples?**\
330330
//! The live demo at <https://www.egui.rs/#demo> mirrors the code in `crates/egui_demo_app` and `crates/egui_demo_lib`. Each window links back to the relevant source so you can inspect a working reference implementation.
331331
//!
332332
//! # Misc

lychee.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ accept = [
4242
# Exclude URLs and mail addresses from checking (supports regex).
4343
exclude = [
4444
"https://creativecommons.org/.*", # They don't like bots
45-
"https://www.unicode.org/.*",
45+
"https://www\\.unicode\\.org/.*", # Their servers often reset automated scrapers
4646
]

0 commit comments

Comments
 (0)