Skip to content

Commit c3dc153

Browse files
authored
Merge pull request #1119 from titaniumtraveler/pr
Fix missing backtick in doc comments letting markdown think &[u8] is a link to u8
2 parents 218770b + 840da8e commit c3dc153

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ enum Value {
7676

7777
A string of JSON data can be parsed into a `serde_json::Value` by the
7878
[`serde_json::from_str`][from_str] function. There is also
79-
[`from_slice`][from_slice] for parsing from a byte slice &\[u8\] and
79+
[`from_slice`][from_slice] for parsing from a byte slice `&[u8]` and
8080
[`from_reader`][from_reader] for parsing from any `io::Read` like a File or a
8181
TCP stream.
8282

src/lexical/large_powers32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//! Precalculated large powers for 32-bit limbs.
44
5-
/// Large powers (&[u32]) for base5 operations.
5+
/// Large powers (`&[u32]`) for base5 operations.
66
const POW5_1: [u32; 1] = [5];
77
const POW5_2: [u32; 1] = [25];
88
const POW5_3: [u32; 1] = [625];

src/lexical/large_powers64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//! Precalculated large powers for 64-bit limbs.
44
5-
/// Large powers (&[u64]) for base5 operations.
5+
/// Large powers (`&[u64]`) for base5 operations.
66
const POW5_1: [u64; 1] = [5];
77
const POW5_2: [u64; 1] = [25];
88
const POW5_3: [u64; 1] = [625];

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
//!
5757
//! A string of JSON data can be parsed into a `serde_json::Value` by the
5858
//! [`serde_json::from_str`][from_str] function. There is also [`from_slice`]
59-
//! for parsing from a byte slice &\[u8\] and [`from_reader`] for parsing from
59+
//! for parsing from a byte slice `&[u8]` and [`from_reader`] for parsing from
6060
//! any `io::Read` like a File or a TCP stream.
6161
//!
6262
//! ```

src/read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use alloc::string::String;
2020
use serde::de::Visitor;
2121

2222
/// Trait used by the deserializer for iterating over input. This is manually
23-
/// "specialized" for iterating over &[u8]. Once feature(specialization) is
23+
/// "specialized" for iterating over `&[u8]`. Once feature(specialization) is
2424
/// stable we can use actual specialization.
2525
///
2626
/// This trait is sealed and cannot be implemented for types outside of

0 commit comments

Comments
 (0)