Code examples
Learn how to write effective code examples.
Code examples demonstrate how to implement specific functionality through code. They are most effective as short, self-contained examples that illustrate specific points.
Code examples are most common in API documentation, but are also used in user manual pages.