Skip to content

Commit eff04aa

Browse files
committed
Fixed some comments
1 parent 3b20c4e commit eff04aa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crates/language-v2/definition/src/model/nonterminals/field.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ pub struct FieldsErrorRecovery {
1313
///
1414
/// For example `PragmaDirective` has a `Semicolon` terminator, that could
1515
/// be used to recover from an wrong pragma directive like
16-
/// `padme solidity ^0.8.0;`
17-
/// ~~~~~ -> This should be `pragma`
16+
/// ```
17+
/// pragma soldity ^0.8.0;
18+
/// ```
1819
#[serde(skip_serializing_if = "Option::is_none")]
1920
pub terminator: Option<Identifier>,
2021

crates/language-v2/definition/src/model/nonterminals/struct_.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ use crate::model::{Field, FieldsErrorRecovery, Identifier, VersionSpecifier};
66

77
/// A `StructItem` is a nonterminal that can have fields.
88
/// It roughly corresponds to a sequend of `Item`s.
9-
///
10-
/// It generates:
11-
/// - A nonterminal named `name` with a single field for each field in `fields`.
129
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
1310
#[derive_spanned_type(Clone, Debug, ParseInputTokens, WriteOutputTokens)]
1411
pub struct StructItem {
@@ -20,7 +17,7 @@ pub struct StructItem {
2017
#[serde(skip_serializing_if = "Option::is_none")]
2118
pub enabled: Option<VersionSpecifier>,
2219

23-
/// Whether error recovery is an option for this struct
20+
/// Whether this struct supports error recovery
2421
#[serde(skip_serializing_if = "Option::is_none")]
2522
pub error_recovery: Option<FieldsErrorRecovery>,
2623

0 commit comments

Comments
 (0)