Skip to content

Commit

Permalink
update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarus committed Nov 28, 2024
1 parent c344fec commit c3f595d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion worker-macros/src/durable_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub fn expand_macro(attr: TokenStream, tokens: TokenStream) -> syn::Result<Token

let bindgen_methods = match durable_object_type {
// if not specified, bindgen all.
// this is expected behavoir, and is also required for #[durable_object] to compile and work
// this is expected behavior, and is also required for #[durable_object] to compile and work
None => vec![
bindgen_methods::core(),
bindgen_methods::alarm(),
Expand Down
4 changes: 2 additions & 2 deletions worker-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod send;

use proc_macro::TokenStream;

/// Integrate the struct with the Workers Runtime as Durable Object.\
/// Integrate the struct with Workers runtime as a Durable Object.\
/// This requires to impl `DurableObject` trait and the trait requires this attribute.
///
/// ## Example
Expand Down Expand Up @@ -37,7 +37,7 @@ use proc_macro::TokenStream;
///
/// ## Note
///
/// You can specify the usage of the Durable Object via argument to control wasm outout:
/// You can specify the usage of the Durable Object via an argument in order to control WASM/JS outout:
///
/// * `fetch`: simple `fetch` target
/// * `alarm`: with [Alarms API](https://developers.cloudflare.com/durable-objects/examples/alarms-api/)
Expand Down

0 comments on commit c3f595d

Please sign in to comment.