Skip to content

Commit c5ce9db

Browse files
alyssaisepilys
authored andcommitted
Fix cargo doc
Signed-off-by: Alyssa Ross <[email protected]>
1 parent caaac9a commit c5ce9db

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

vhost-device-gpio/src/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct GpioArgs {
6969
socket_count: usize,
7070

7171
/// List of GPIO devices, one for each guest, in the format
72-
/// [s]<N1>[:[s]<N2>].
72+
/// `[s]<N1>[:[s]<N2>]`.
7373
#[clap(short = 'l', long)]
7474
device_list: String,
7575
}

vhost-device-i2c/src/i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ union I2cSmbusData {
152152
byte: u8,
153153
word: u16,
154154

155-
/// block[0] is used for length, and one more for user-space compatibility
155+
/// `block[0]` is used for length, and one more for user-space compatibility
156156
block: [u8; I2C_SMBUS_BLOCK_MAX + 2],
157157
}
158158

vhost-device-i2c/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ struct I2cArgs {
6767
socket_count: usize,
6868

6969
/// List of I2C bus and clients in format
70-
/// <bus-name>:<client_addr>[:<client_addr>][,<bus-name>:<client_addr>[:
71-
/// <client_addr>]].
70+
/// `<bus-name>:<client_addr>[:<client_addr>][,<bus-name>:<client_addr>[:<client_addr>]]`.
7271
#[clap(short = 'l', long)]
7372
device_list: String,
7473
}

vhost-device-scmi/src/devices/iio.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ enum IioEndian {
171171
}
172172

173173
/// Representation of an IIO channel axis's scan type.
174-
/// It is read from sysfs "scan_element/<channel>_type"
174+
/// It is read from sysfs "scan_element/\<channel>_type"
175175
///
176176
/// Used also for scalar values.
177177
#[derive(PartialEq, Debug, Clone, Copy)]
@@ -250,18 +250,18 @@ struct Axis {
250250
/// Axis unit exponent, see [UnitMapping::unit_exponent] and [UNIT_MAPPING].
251251
unit_exponent: i8,
252252
/// Additional exponent to apply to the axis values. It is computed from
253-
/// the axis value scaling (see [IIOSensor::custom_exponent] to provide a
254-
/// sufficiently accurate SCMI value that is represented by an integer (not
255-
/// a float) + decadic exponent.
253+
/// the axis value scaling (see [IIOSensor::custom_exponent_and_resolution]
254+
/// to provide a sufficiently accurate SCMI value that is represented by an
255+
/// integer (not a float) + decadic exponent.
256256
custom_exponent: i8,
257257
/// This is an extended attribute field. It reports the resolution of the
258-
/// sensor axis. The representation is in [custom_resolution] x
259-
/// 10^[custom_exponent] format. This field is present only if Bit[8] of
260-
/// axis_attributes_low is set to 1.
258+
/// sensor axis. The representation is in [Self::custom_resolution] x
259+
/// 10^[Self::custom_exponent] format. This field is present only if
260+
/// `Bit[8]` of axis_attributes_low is set to 1.
261261
custom_resolution: u64,
262262
/// Channel scan type, necessary if the sensor supports notifications.
263263
/// The data from /dev/iio:deviceX will be formatted according to this.
264-
/// The ChanScanType is parsed from "scan_elements/<channel>_type"
264+
/// The ChanScanType is parsed from "scan_elements/\<channel>_type"
265265
scan_type: Option<ChanScanType>,
266266
}
267267

vhost-device-sound/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ pub type Result<T> = std::result::Result<T, Error>;
7777
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
7878
#[repr(u8)]
7979
pub enum Direction {
80-
/// [`VIRTIO_SND_D_OUTPUT`](crate::virtio_sound::VIRTIO_SND_D_OUTPUT)
80+
/// [`VIRTIO_SND_D_OUTPUT`]
8181
Output = VIRTIO_SND_D_OUTPUT,
82-
/// [`VIRTIO_SND_D_INPUT`](crate::virtio_sound::VIRTIO_SND_D_INPUT)
82+
/// [`VIRTIO_SND_D_INPUT`]
8383
Input = VIRTIO_SND_D_INPUT,
8484
}
8585

vhost-device-sound/src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl Request {
323323
}
324324

325325
#[inline]
326-
/// Returns the length of the sound data [`virtio_queue::Descriptor`].
326+
/// Returns the length of the sound data [`virtio_queue::desc::RawDescriptor`].
327327
pub const fn len(&self) -> usize {
328328
self.len
329329
}

0 commit comments

Comments
 (0)