Skip to content

API guideline fixes#746

Merged
williampMSFT merged 2 commits intoOpenDevicePartnership:v0.2.0from
williampMSFT:user/williamp/guideline-improvements
Mar 12, 2026
Merged

API guideline fixes#746
williampMSFT merged 2 commits intoOpenDevicePartnership:v0.2.0from
williampMSFT:user/williamp/guideline-improvements

Conversation

@williampMSFT
Copy link
Contributor

A few fixes for some stuff that slipped through in #740. Mostly style / example syntax stuff, and added a note about event ordering when adopting the runner pattern

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes minor documentation fixes to docs/api-guidelines.md, following up on PR #740 which introduced the uniform service spawning pattern. The fixes address missing lifetime generic parameters in code examples, minor syntax issues, and add a note about task scheduling order when adopting the runner pattern.

Changes:

  • Added missing <'hw> lifetime parameters to type usages in Rust code examples (e.g., Option<FooInner>Option<FooInner<'hw>>)
  • Fixed minor syntax issues: added missing semicolon, removed trailing whitespace, changed "i.e." to "e.g.", added missing newline at EOF
  • Added a paragraph warning about event ordering implications when consolidating multiple tasks into a single runner

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@williampMSFT williampMSFT enabled auto-merge (squash) March 12, 2026 17:35
@williampMSFT williampMSFT merged commit 0ebad07 into OpenDevicePartnership:v0.2.0 Mar 12, 2026
19 checks passed
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.

5 participants