Skip to content

Commit 7d00e11

Browse files
authored
Remove double code-lang buttons (#347)
Nested the lang specific text into the overall codeblock instead of duplicating below.
1 parent 2291608 commit 7d00e11

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/index.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ pub fn world(ctx: &spacetimedb::ReducerContext) -> Result<(), String> {
188188
clear_all_tables(ctx);
189189
}
190190
```
191+
While SpacetimeDB doesn't support nested transactions,
192+
a reducer can [schedule another reducer](https://docs.rs/spacetimedb/latest/spacetimedb/attr.reducer.html#scheduled-reducers) to run at an interval,
193+
or at a specific time.
191194
:::
192195
:::server-csharp
193196
```csharp
@@ -207,19 +210,12 @@ public static void World(ReducerContext ctx)
207210
// ...
208211
}
209212
```
210-
:::
211-
212-
:::server-rust
213-
While SpacetimeDB doesn't support nested transactions,
214-
a reducer can [schedule another reducer](https://docs.rs/spacetimedb/latest/spacetimedb/attr.reducer.html#scheduled-reducers) to run at an interval,
215-
or at a specific time.
216-
:::
217-
:::server-csharp
218213
While SpacetimeDB doesn't support nested transactions,
219214
a reducer can [schedule another reducer](/docs/modules/c-sharp#scheduled-reducers) to run at an interval,
220215
or at a specific time.
221216
:::
222217

218+
223219
### Client
224220
A **client** is an application that connects to a [database](#database). A client logs in using an [identity](#identity) and receives an [connection id](#connectionid) to identify the connection. After that, it can call [reducers](#reducer) and query public [tables](#table).
225221

0 commit comments

Comments
 (0)