Skip to content

Commit

Permalink
Fix some documentation generation warnings
Browse files Browse the repository at this point in the history
Summary: I tried out `cargo doc` and there were some broken links so I fixed them.

Reviewed By: tmikov

Differential Revision: D31275280

fbshipit-source-id: dc8188a854ad0f1d30d3c88bf4def33d6a3a4a58
  • Loading branch information
avp authored and facebook-github-bot committed Sep 29, 2021
1 parent ce59ce1 commit fb50c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions unsupported/juno/crates/hermes/src/utf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn decode_surrogate_pair(hi: u32, lo: u32) -> u32 {
((hi - UTF16_HIGH_SURROGATE) << 10) + (lo - UTF16_LOW_SURROGATE) + 0x10000
}

/// @param ch the byte at src[from], which also implies that src[from] is a valid index.
/// @param ch the byte at `src[from]`, which also implies that `src[from]` is a valid index.
fn decode_utf8<const ALLOW_SURROGATES: bool>(
src: &[u8],
from: &mut usize,
Expand All @@ -113,7 +113,7 @@ fn decode_utf8<const ALLOW_SURROGATES: bool>(
}
}

/// @param ch the byte at src[from], which also implies that src[from] is a valid index.
/// @param ch the byte at `src[from]`, which also implies that `src[from]` is a valid index.
fn decode_utf8_slow_path<const ALLOW_SURROGATES: bool>(
src: &[u8],
from: &mut usize,
Expand Down
2 changes: 1 addition & 1 deletion unsupported/juno/crates/juno/src/ast/atom_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type NumIndex = u32;
pub struct AtomTable {
/// Strings are added here and never removed or mutated.
strings: Vec<String>,
/// Maps from a reference inside [strings] to the index in [strings].
/// Maps from a reference inside [`AtomTable::strings`] to the index in [`AtomTable::strings`].
/// Since strings are never removed or modified, the lifetime of the key
/// is effectively static.
map: HashMap<&'static str, NumIndex>,
Expand Down

0 comments on commit fb50c1b

Please sign in to comment.