Skip to content

Commit d6f9093

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 0f5b809 commit d6f9093

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
@@ -269,8 +269,8 @@ pub struct PolyTrait {
269269
/// A set of generic arguments provided to a path segment, e.g.
270270
///
271271
/// ```text
272-
/// std::option::Option::<u32>::None
273-
/// ^^^^^
272+
/// std::option::Option<u32>
273+
/// ^^^^^
274274
/// ```
275275
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
276276
#[serde(rename_all = "snake_case")]
@@ -323,7 +323,7 @@ pub enum GenericArg {
323323
Const(Constant),
324324
/// A generic argument that's explicitly set to be inferred.
325325
/// ```text
326-
/// std::vec::Vec::<_>::new()
326+
/// std::vec::Vec::<_>
327327
/// ^
328328
/// ```
329329
Infer,

0 commit comments

Comments
 (0)