Skip to content

Commit 4b0d46a

Browse files
committed
Fix some comments.
As per the previous commit, generic args here can only appear on the final segment. So make the comments obey that constraint.
1 parent 43ed6b3 commit 4b0d46a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustdoc-json-types/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ pub struct PolyTrait {
277277
/// A set of generic arguments provided to a path segment, e.g.
278278
///
279279
/// ```text
280-
/// std::option::Option::<u32>::None
281-
/// ^^^^^
280+
/// std::option::Option<u32>
281+
/// ^^^^^
282282
/// ```
283283
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
284284
#[serde(rename_all = "snake_case")]
@@ -331,7 +331,7 @@ pub enum GenericArg {
331331
Const(Constant),
332332
/// A generic argument that's explicitly set to be inferred.
333333
/// ```text
334-
/// std::vec::Vec::<_>::new()
334+
/// std::vec::Vec::<_>
335335
/// ^
336336
/// ```
337337
Infer,

0 commit comments

Comments
 (0)