Skip to content
The style guide is in beta: content and structure may change.

Inline code

This page covers how code elements (function names, methods, commands) behave when they appear inside ordinary sentences. Formatting rules for standalone samples live on the code samples page, and placeholder conventions on the placeholders page.

inline-001 should GuidesAPI docsMarketing

Do not use a function or method name as an English verb in body text.

Examples

  • ✓ Call push() to add the message to the queue.
  • push() the message onto the queue.

Rationale

Using a method name as a verb blurs the line between code and body text and reads awkwardly.