Skip to content

Commit c37ed7a

Browse files
committed
[doc] rio-backend
1 parent af5b2cb commit c37ed7a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

rio-backend/src/ansi/mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub enum NamedPrivateMode {
118118
UrgencyHints = 1042,
119119
SwapScreenAndSetRestoreCursor = 1049,
120120
BracketedPaste = 2004,
121-
/// The mode is handled automatically by [`Processor`].
121+
/// The mode is handled automatically by [`Processor`](crate::performer::handler::Processor).
122122
SyncUpdate = 2026,
123123
}
124124

rio-backend/src/config/platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct Platform {
1313

1414
/// Other platform specific configuration options can be added here.
1515
///
16-
/// When deserializing, each field is Option<T> to distinguish between
16+
/// When deserializing, each field is `Option<T>` to distinguish between
1717
/// "not specified" vs "specified with value". During merge, we recursively
1818
/// merge individual fields rather than replacing entire structures.
1919
#[derive(Default, Debug, Serialize, Deserialize, PartialEq, Clone)]

rio-backend/src/crosswords/grid/storage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ impl<T> Storage<T> {
152152
self.len == 0
153153
}
154154

155-
/// Swap implementation for Row<T>.
155+
/// Swap implementation for `Row<T>`.
156156
///
157-
/// Exploits the known size of Row<T> to produce a slightly more efficient
157+
/// Exploits the known size of `Row<T>` to produce a slightly more efficient
158158
/// swap than going through slice::swap.
159159
///
160160
/// The default implementation from swap generates 8 movups and 4 movaps

rio-backend/src/crosswords/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl From<KeyboardModes> for Mode {
170170
}
171171
}
172172

173-
/// Terminal damage information collected since the last [`Term::reset_damage`] call.
173+
/// Terminal damage information collected since the last [`Crosswords::reset_damage`] call.
174174
#[derive(Debug)]
175175
pub enum TermDamage<'a> {
176176
/// The entire terminal is damaged.

rio-backend/src/selection.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ pub enum SelectionType {
111111
/// Describes a region of a 2-dimensional area.
112112
///
113113
/// Used to track a text selection. There are four supported modes, each with its own constructor:
114-
/// [`simple`], [`block`], [`semantic`], and [`lines`]. The [`simple`] mode precisely tracks which
114+
/// [`simple`], [`block`], [`semantic`], and [`semantic`]. The [`simple`] mode precisely tracks which
115115
/// cells are selected without any expansion. [`block`] will select rectangular regions.
116-
/// [`lines`] will always select entire lines.
116+
/// [`semantic`] will always select entire lines.
117117
///
118118
/// Calls to [`update`] operate different based on the selection kind. The [`simple`] and [`block`]
119119
/// mode do nothing special, simply track points and sides.
120120
///
121-
/// [`simple`]: enum.Selection.html#method.simple
122-
/// [`block`]: enum.Selection.html#method.block
123-
/// [`lines`]: enum.Selection.html#method.rows
124-
/// [`update`]: enum.Selection.html#method.update
121+
/// [`simple`]: enum.SelectionType.html#variant.Simple
122+
/// [`block`]: enum.SelectionType.html#variant.Block
123+
/// [`semantic`]: enum.SelectionType.html#variant.Semantic
124+
/// [`update`]: enum.SelectionType.html#variant.Update
125125
#[derive(Debug, Clone, PartialEq, Eq)]
126126
pub struct Selection {
127127
pub ty: SelectionType,

0 commit comments

Comments
 (0)