Skip to content

Commit 30fc8e2

Browse files
authored
docs(lints): address clippy lint errors related to doc comments (#65)
1 parent 56011b4 commit 30fc8e2

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

arithmetic-coding-core/src/model/fixed_length.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ use std::ops::Range;
44

55
use crate::BitStore;
66

7-
/// A [`Model`] is used to calculate the probability of a given symbol occuring
8-
/// in a sequence. The [`Model`] is used both for encoding and decoding. A
7+
/// A [`Model`] is used to calculate the probability of a given symbol occurring
8+
/// in a sequence.
9+
///
10+
/// The [`Model`] is used both for encoding and decoding. A
911
/// 'fixed-length' model always expects an exact number of symbols, and so does
1012
/// not need to encode an EOF symbol.
1113
///
@@ -124,7 +126,7 @@ pub trait Model {
124126
/// no-op by default.
125127
fn update(&mut self, _symbol: &Self::Symbol) {}
126128

127-
/// The total number of sumbols to encode
129+
/// The total number of symbols to encode
128130
fn length(&self) -> usize;
129131
}
130132

arithmetic-coding-core/src/model/max_length.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ use std::ops::Range;
44

55
use crate::BitStore;
66

7-
/// A [`Model`] is used to calculate the probability of a given symbol occuring
8-
/// in a sequence. The [`Model`] is used both for encoding and decoding. A
7+
/// A [`Model`] is used to calculate the probability of a given symbol occurring
8+
/// in a sequence.
9+
///
10+
/// The [`Model`] is used both for encoding and decoding. A
911
/// 'max-length' model has a maximum length. The compressed size of a message
1012
/// equal to the maximum length is larger than with a
1113
/// [`fixed_length::Model`](crate::fixed_length::Model), but smaller than with a

arithmetic-coding-core/src/model/one_shot.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ use std::ops::Range;
55
pub use crate::fixed_length::Wrapper;
66
use crate::{fixed_length, BitStore};
77

8-
/// A [`Model`] is used to calculate the probability of a given symbol occuring
9-
/// in a sequence. The [`Model`] is used both for encoding and decoding. A
8+
/// A [`Model`] is used to calculate the probability of a given symbol occurring
9+
/// in a sequence.
10+
///
11+
/// The [`Model`] is used both for encoding and decoding. A
1012
/// 'one-shot' only ever encodes a single symbol, and so does
1113
/// not need to encode an EOF symbol.
1214
///

0 commit comments

Comments
 (0)