Skip to content

Commit f2b1caf

Browse files
fahchenclaude
andcommitted
docs: restore Config.load/0 example using #=> notation
The previous iex> examples were removed because they would fail as doctests once the module's doctest was activated. Restore the example using a #=> comment so it's shown in generated docs without being executed as a test. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8c26ce8 commit f2b1caf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/dprint_markdown_formatter/config.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ defmodule DprintMarkdownFormatter.Config do
7777
7878
Returns a validated configuration struct with proper type checking. Invalid
7979
values are replaced with defaults and warnings are logged.
80+
81+
## Examples
82+
83+
# With valid configuration in mix.exs
84+
DprintMarkdownFormatter.Config.load()
85+
#=> %DprintMarkdownFormatter.Config{line_width: 80, text_wrap: :always}
8086
"""
8187
@spec load() :: t()
8288
def load do

0 commit comments

Comments
 (0)