Skip to content

Commit 4c470f0

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 <jameshgilles@gmail.com> --------- Co-authored-by: james gilles <jameshgilles@gmail.com>
1 parent 0584e75 commit 4c470f0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/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)