Commit c3b9344
committed
Code.get_docs/2: check for valid doc kind in public function, not in private
This was giving me a long cryptic message because we were checking for a valid kind
way to far.
I have renamed the attribute to @doc_kinds instead of @doc_sections
Corrected kinds for :all option
Mention that no valid module returns nil, and created a doctest example.1 parent 912c461 commit c3b9344
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
| |||
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
601 | 608 | | |
602 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
603 | 612 | | |
604 | 613 | | |
605 | 614 | | |
| |||
608 | 617 | | |
609 | 618 | | |
610 | 619 | | |
611 | | - | |
| 620 | + | |
612 | 621 | | |
613 | 622 | | |
614 | 623 | | |
| |||
629 | 638 | | |
630 | 639 | | |
631 | 640 | | |
632 | | - | |
633 | | - | |
634 | 641 | | |
635 | | - | |
| 642 | + | |
636 | 643 | | |
637 | 644 | | |
638 | 645 | | |
| |||
0 commit comments