Skip to content

Fix incorrect trailing comma in book #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eekle
Copy link

@Eekle Eekle commented May 30, 2025

With this comma, the code fails to compile with:

    Checking protocol v0.1.0 (X:\postcard_rpc_test\protocol)
error: macros that expand to items must be delimited with braces or followed by a semicolon
  --> src\lib.rs:21:1
   |
21 | / endpoint!(
22 | |     SleepEndpoint, // This is the NAME of the Endpoint
23 | |     Sleep,         // This is the Request type
24 | |     SleepDone,     // This is the Response type
25 | |     "sleep",       // This is the "path" of the endpoint
26 | | );
   | |_^
   |
   = note: this error originates in the macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `protocol` (lib) due to 1 previous error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant