Skip to content

Commit 183b917

Browse files
committed
Fix some comments in parsing of from/try_from/into attributes
1 parent 0e70f59 commit 183b917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

serde_derive/src/internals/attr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,21 +490,21 @@ impl Container {
490490
}
491491
}
492492

493-
// Parse `#[serde(from = "Type")]
493+
// Parse `#[serde(from = "Type")]`
494494
Meta(NameValue(m)) if m.path == FROM => {
495495
if let Ok(from_ty) = parse_lit_into_ty(cx, FROM, &m.lit) {
496496
type_from.set_opt(&m.path, Some(from_ty));
497497
}
498498
}
499499

500-
// Parse `#[serde(try_from = "Type")]
500+
// Parse `#[serde(try_from = "Type")]`
501501
Meta(NameValue(m)) if m.path == TRY_FROM => {
502502
if let Ok(try_from_ty) = parse_lit_into_ty(cx, TRY_FROM, &m.lit) {
503503
type_try_from.set_opt(&m.path, Some(try_from_ty));
504504
}
505505
}
506506

507-
// Parse `#[serde(into = "Type")]
507+
// Parse `#[serde(into = "Type")]`
508508
Meta(NameValue(m)) if m.path == INTO => {
509509
if let Ok(into_ty) = parse_lit_into_ty(cx, INTO, &m.lit) {
510510
type_into.set_opt(&m.path, Some(into_ty));

0 commit comments

Comments
 (0)