Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit e92d256

Browse files
gefjonkazimuth
andauthored
Fix example that was still rust-ey in C# ref (#333)
* Fix example that was still rust-ey in C# ref This must have gotten missed when porting the Rust ref over to C#. * Read `.Value` Co-authored-by: james gilles <[email protected]> --------- Co-authored-by: james gilles <[email protected]>
1 parent dde2811 commit e92d256

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/modules/c-sharp/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ public static partial class Module {
482482
[Reducer]
483483
void Demo(ReducerContext ctx) {
484484
var idIndex = ctx.Db.user.Id;
485-
var exampleUser = idIndex.find(357).unwrap();
486-
exampleUser.dog_count += 5;
487-
idIndex.update(exampleUser);
485+
var exampleUser = idIndex.Find(357).Value;
486+
exampleUser.DogCount += 5;
487+
idIndex.Update(exampleUser);
488488

489489
var usernameIndex = ctx.Db.user.Username;
490-
usernameIndex.delete("Evil Bob");
490+
usernameIndex.Delete("Evil Bob");
491491
}
492492
}
493493
```

0 commit comments

Comments
 (0)