Skip to content

Commit 18f858a

Browse files
Remove 'readonly' from struct and field definitions (#1546)
1 parent ff9543d commit 18f858a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/csharp/src/interface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ impl<'a> CoreInterfaceGenerator<'a> for InterfaceGenerator<'a> {
13301330
.iter()
13311331
.map(|field| {
13321332
format!(
1333-
"{access} readonly {} {};",
1333+
"{access} {} {};",
13341334
self.type_name(&field.ty),
13351335
field.name.to_csharp_ident()
13361336
)
@@ -1342,7 +1342,7 @@ impl<'a> CoreInterfaceGenerator<'a> for InterfaceGenerator<'a> {
13421342
uwrite!(
13431343
self.src,
13441344
"
1345-
{access} readonly struct {name} {{
1345+
{access} struct {name} {{
13461346
{fields}
13471347
13481348
{access} {name}({parameters}) {{

0 commit comments

Comments
 (0)