From 152ed2cde158f808b3ae8d17aad32f6b935e66c3 Mon Sep 17 00:00:00 2001 From: Phoebe Goldman Date: Fri, 25 Apr 2025 09:28:28 -0400 Subject: [PATCH] Fix example that was still rust-ey in C# ref This must have gotten missed when porting the Rust ref over to C#. --- docs/modules/c-sharp/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/modules/c-sharp/index.md b/docs/modules/c-sharp/index.md index 3deeb2b..1c02ac1 100644 --- a/docs/modules/c-sharp/index.md +++ b/docs/modules/c-sharp/index.md @@ -480,12 +480,12 @@ public static partial class Module { [Reducer] void Demo(ReducerContext ctx) { var idIndex = ctx.Db.user.Id; - var exampleUser = idIndex.find(357).unwrap(); - exampleUser.dog_count += 5; - idIndex.update(exampleUser); + var exampleUser = idIndex.Find(357); + exampleUser.DogCount += 5; + idIndex.Update(exampleUser); var usernameIndex = ctx.Db.user.Username; - usernameIndex.delete("Evil Bob"); + usernameIndex.Delete("Evil Bob"); } } ```