on master help sign in
Fix doc warnings
commit985625763addd839a101263ae90cfb2f205830fc authorIvan Tham <pickfire@riseup.net> dateSat 19 Jun 2021, 23:11 (5 years ago) parenteaf259f
4 files changed+10−10
helix-term/src/compositor.rs+7−7 helix-tui/src/lib.rs+1−1 helix-tui/src/widgets/mod.rs+1−1 helix-view/src/document.rs+1−1
helix-term/src/compositor.rs+7−7
@@ -178,13 +178,13 @@ pub trait AnyComponent {
178178 /// Returns a boxed any from a boxed self.
179179 ///
180180 /// Can be used before `Box::downcast()`.
181− ///
182− /// # Examples
183− ///
184− /// ```rust
185− /// // let boxed: Box<Component> = Box::new(TextComponent::new("text"));
186− /// // let text: Box<TextComponent> = boxed.as_boxed_any().downcast().unwrap();
187− /// ```
181+ //
182+ // # Examples
183+ //
184+ // ```rust
185+ // let boxed: Box<Component> = Box::new(TextComponent::new("text"));
186+ // let text: Box<TextComponent> = boxed.as_boxed_any().downcast().unwrap();
187+ // ```
188188 fn as_boxed_any(self: Box<Self>) -> Box<dyn Any>;
189189}
190190
helix-tui/src/lib.rs+1−1
@@ -44,7 +44,7 @@
4444//! implement your own.
4545//!
4646//! Each widget follows a builder pattern API providing a default configuration along with methods
47−//! to customize them. The widget is then rendered using the [`Frame::render_widget`] which take
47+//! to customize them. The widget is then rendered using the `Frame::render_widget` which take
4848//! your widget instance an area to draw to.
4949//!
5050//! The following example renders a block of the size of the terminal:
helix-tui/src/widgets/mod.rs+1−1
@@ -1,4 +1,4 @@
1−//! `widgets` is a collection of types that implement [`Widget`] or [`StatefulWidget`] or both.
1+//! `widgets` is a collection of types that implement [`Widget`].
22//!
33//! All widgets are implemented using the builder pattern and are consumable objects. They are not
44//! meant to be stored but used as *commands* to draw common figures in the UI.
helix-view/src/document.rs+1−1
@@ -165,7 +165,7 @@ pub fn fold_home_dir(path: &Path) -> PathBuf {
165165/// [`std::fs::canonicalize`] can be hard to use correctly, since it can often
166166/// fail, or on Windows returns annoying device paths. This is a problem Cargo
167167/// needs to improve on.
168−/// Copied from cargo: https://github.com/rust-lang/cargo/blob/070e459c2d8b79c5b2ac5218064e7603329c92ae/crates/cargo-util/src/paths.rs#L81
168+/// Copied from cargo: <https://github.com/rust-lang/cargo/blob/070e459c2d8b79c5b2ac5218064e7603329c92ae/crates/cargo-util/src/paths.rs#L81>
169169pub fn normalize_path(path: &Path) -> PathBuf {
170170 let path = expand_tilde(path);
171171 let mut components = path.components().peekable();