Code & docs examples

Copy-paste snippets for comments & docs — x ≤ y, input ⇒ output, ⌘ + ⏎.

In a code comment or a technical doc, a symbol is often tighter than spelling it out. These examples show mapping and implication arrows, comparison operators, a pipeline, a done/todo note, and a keyboard shortcut.

Copy a snippet into a comment, a commit message or a cheat sheet. Use → for "returns" or "maps to", and reach for the key glyphs only when documenting shortcuts.

Examples — tap any line to copy

Symbols used here

More use cases