Skip to content

Commit a8a2f1f

Browse files
aidenfoxiveyk0kubun
authored andcommitted
ZJIT: Fix documentation build warnings
1 parent 5283443 commit a8a2f1f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

zjit/src/distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#[derive(Debug, Clone)]
55
pub struct Distribution<T: Copy + PartialEq + Default, const N: usize> {
66
/// buckets and counts have the same length
7-
/// buckets[0] is always the most common item
7+
/// `buckets[0]` is always the most common item
88
buckets: [T; N],
99
counts: [usize; N],
1010
/// if there is no more room, increment the fallback

zjit/src/gc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ pub fn remove_gc_offsets(payload_ptr: *mut IseqPayload, removed_range: &Range<Co
219219
});
220220
}
221221

222-
/// Return true if given Range<CodePtr> ranges overlap with each other
222+
/// Return true if given `Range<CodePtr>` ranges overlap with each other
223223
fn ranges_overlap<T>(left: &Range<T>, right: &Range<T>) -> bool where T: PartialOrd {
224224
left.start < right.end && right.start < left.end
225225
}

zjit/src/invariants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Invariants {
6363
Self::update_iseq_references(&mut self.no_ep_escape_iseqs);
6464
}
6565

66-
/// Update ISEQ references in a given HashSet<IseqPtr>
66+
/// Update ISEQ references in a given `HashSet<IseqPtr>`
6767
fn update_iseq_references(iseqs: &mut HashSet<IseqPtr>) {
6868
let mut moved: Vec<IseqPtr> = Vec::with_capacity(iseqs.len());
6969

0 commit comments

Comments
 (0)