Skip to content

Commit 7944eea

Browse files
committed
Fixes to documentation
1 parent 82d5ebc commit 7944eea

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/format.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16+
//! Format katcp messages.
17+
1618
use std::ops::AddAssign;
1719
use uninit::prelude::*;
1820

src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16-
//! The basic katcp message type
16+
//! Python wrapper for katcp messages.
1717
1818
use pyo3::exceptions::PyRuntimeError;
1919
use pyo3::gc::PyVisit;

src/parse.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16+
//! Parse katcp messages.
17+
1618
use adjacent_pair_iterator::AdjacentPairIterator;
1719
use pyo3::buffer::{Element, PyBuffer, ReadOnlyCell};
1820
use pyo3::exceptions::{PyBufferError, PyValueError};
@@ -27,7 +29,7 @@ use crate::tables::PARSER_TABLE;
2729
/// A katcp message produced by parsing.
2830
///
2931
/// To minimise the number of memory allocations, the name and the arguments
30-
/// are all stored back-to-back in a [Vec<u8>], and the individual fields just
32+
/// are all stored back-to-back in a [`Vec<u8>`], and the individual fields just
3133
/// store offsets into this vector. This allows a message with many arguments
3234
/// to use only O(1) allocations.
3335
#[derive(Clone, Debug)]
@@ -97,7 +99,7 @@ impl ParseError {
9799
}
98100
}
99101

100-
/// Abstract read access to either [T] or [ReadOnlyCell<T>].
102+
/// Abstract read access to either T or [`ReadOnlyCell<T>`].
101103
pub trait ReadAccess<T: Copy>: Sized {
102104
fn read(&self) -> T;
103105
}

0 commit comments

Comments
 (0)