Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Viewer: wrap the snap() doc comment (#253)

bflatastic25e5d0f9c017
diff --git a/crates/ui-egui/src/panels/viewer_tools.rs b/crates/ui-egui/src/panels/viewer_tools.rs
index 5d19add56..d1ffc4db6 100644
--- a/crates/ui-egui/src/panels/viewer_tools.rs
+++ b/crates/ui-egui/src/panels/viewer_tools.rs
@@ -35,8 +35,9 @@ pub(crate) fn snapping_on(app: &EffectcraftApp, mods: egui::Modifiers) -> bool {
/// Snap dragged feature points (`sources`, comp pixels) to the comp's targets: other layers'
/// edges, corners, centres, anchor points and mask/shape vertices and the comp edges and centre
-/// (when snapping is on, as the Snapping options allow), guides (View ▸ Snap to Guides) and the grid (View ▸ Snap to Grid). Returns
-/// the comp-space correction (zero when nothing is near) and records the feedback for this frame.
+/// (when snapping is on, as the Snapping options allow), guides (View ▸ Snap to Guides) and the
+/// grid (View ▸ Snap to Grid). Returns the comp-space correction (zero when nothing is near) and
+/// records the feedback for this frame.
pub(crate) fn snap(
app: &EffectcraftApp,
ctx: &egui::Context,