Skip to content

docs(pubsub): handler examples#4639

Merged
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:docs-pubsub-handler-examples
Feb 10, 2026
Merged

docs(pubsub): handler examples#4639
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:docs-pubsub-handler-examples

Conversation

@dbolduc
Copy link
Copy Markdown
Member

@dbolduc dbolduc commented Feb 10, 2026

Part of the work for #4508

I am too lazy to play the doc pdf game. Here is a screenshot that googlers can see: https://screenshot.googleplex.com/7tNufCHHTjudwDy

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 10, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.02%. Comparing base (adf4a5c) to head (e809610).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4639   +/-   ##
=======================================
  Coverage   95.02%   95.02%           
=======================================
  Files         195      195           
  Lines        7473     7473           
=======================================
  Hits         7101     7101           
  Misses        372      372           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc dbolduc marked this pull request as ready for review February 10, 2026 02:36
@dbolduc dbolduc requested a review from a team as a code owner February 10, 2026 02:36
Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better than before, but find out if the use of backticks in a cross-reference is common.


//! Handlers for acknowledging or rejecting messages.
//!
//! To acknowledge (ack) a message, you call [`Handler::ack()`].
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are going to prove me wrong, but I expect we use [Handler::ack()] (without backticks inside the brackets) more often.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regardless, I think code should look like code.


But yes, I do think we omit the backticks more often than not. e.g. when linking builders back to the client methods.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://doc.rust-lang.org/rustdoc/write-documentation/linking-to-items-by-name.html

Most of the examples in here stylize code links with the backticks

@dbolduc dbolduc merged commit c3d99d7 into googleapis:main Feb 10, 2026
34 checks passed
@dbolduc dbolduc deleted the docs-pubsub-handler-examples branch February 10, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants