From 2fef2857b057eceb79c39345e054f5b4765fefe8 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Thu, 20 Jul 2023 17:22:14 +0200 Subject: [PATCH] address pheobe's review --- crates/bindings-macro/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/bindings-macro/src/lib.rs b/crates/bindings-macro/src/lib.rs index 72dc195a75..2a4aec8810 100644 --- a/crates/bindings-macro/src/lib.rs +++ b/crates/bindings-macro/src/lib.rs @@ -79,9 +79,8 @@ mod sym { /// | index(btree | hash [, name = string] [, field_name:ident]*) /// ``` /// -/// Note that using `#[autoinc]` on a field -/// does not also imply `#[primarykey]` or `#[unique]`. -/// If those semantics are desired, those attributes should also be used. +/// For description of the field attributes on `#[spacetimedb(table)]` structs, +/// see [`TableType`](spacetimedb_tabletype). #[proc_macro_attribute] pub fn spacetimedb(macro_args: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream { let item: TokenStream = item.into(); @@ -482,6 +481,9 @@ fn spacetimedb_table(item: TokenStream) -> syn::Result { /// the sequence is incremented, and this value is used instead. /// Can only be used on numeric types and may be combined with indexes. /// +/// Note that using `#[autoinc]` on a field does not also imply `#[primarykey]` or `#[unique]`. +/// If those semantics are desired, those attributes should also be used. +/// /// * `#[unique]` /// /// Creates an index and unique constraint for the annotated field.