Skip to content

Commit

Permalink
Fix all wrap_mode docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed May 28, 2024
1 parent 90612b0 commit 0bdaffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions crates/egui/src/containers/combo_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ impl ComboBox {

/// Controls the wrap mode used for the selected text.
///
/// By default, [`Ui::wrap_mode`] will be used, which can be
/// overridden with [`Style::wrap_mode`].
/// By default, [`Ui::wrap_mode`] will be used, which can be overridden with [`Style::wrap_mode`].
///
/// Note that any `\n` in the text will always produce a new line.
#[inline]
Expand Down
4 changes: 1 addition & 3 deletions crates/egui/src/widgets/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ impl<'a> Button<'a> {

/// Set the wrap mode for the text.
///
/// By default, the text will wrap at the [`Ui`] boundary in vertical layouts and wrapping
/// horizontal layouts, or extend the [`Ui`] otherwise. This default behavior can be overridden
/// with [`Style::wrap_mode`].
/// By default, [`Ui::wrap_mode`] will be used, which can be overridden with [`Style::wrap_mode`].
///
/// Note that any `\n` in the text will always produce a new line.
#[inline]
Expand Down
4 changes: 1 addition & 3 deletions crates/egui/src/widgets/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ impl Label {

/// Set the wrap mode for the text.
///
/// By default, the text will wrap at the [`Ui`] boundary in vertical layouts and wrapping
/// horizontal layouts, or extend the [`Ui`] otherwise. This default behavior can be overridden
/// with [`Style::wrap_mode`].
/// By default, [`Ui::wrap_mode`] will be used, which can be overridden with [`Style::wrap_mode`].
///
/// Note that any `\n` in the text will always produce a new line.
#[inline]
Expand Down

0 comments on commit 0bdaffb

Please sign in to comment.