Skip to content

Commit

Permalink
spacetimedb_tabletype: minor docs tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jul 6, 2023
1 parent da45156 commit 9e0000d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/bindings-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,15 @@ fn spacetimedb_table(item: TokenStream) -> syn::Result<TokenStream> {
/// Among other things, this derives `Serialize`, `Deserialize`,
/// `SpacetimeType`, and `TableType` for our type.
///
/// A table type must be a struct, whose fields may be annotated with the following attributes:
/// A table type must be a `struct`, whose fields may be annotated with the following attributes:
///
/// * `#[autoinc]`
///
/// Creates a database sequence. When a row is inserted with the annotated field
/// set to `0` (zero), the sequence is incremented, and this value used instead.
/// Can only be used on numeric types, and may be combined with indexes.
/// Creates a database sequence.
///
/// When a row is inserted with the annotated field set to `0` (zero),
/// the sequence is incremented, and this value is used instead.
/// Can only be used on numeric types and may be combined with indexes.
///
/// * `#[unique]`
///
Expand Down

0 comments on commit 9e0000d

Please sign in to comment.