Skip to content

Commit 782657d

Browse files
committed
Add some "Example" headers to docs
1 parent 528c4c4 commit 782657d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ impl GHRepo {
143143
/// any point, just because a name is accepted doesn't necessarily mean you
144144
/// can create a user by that name on GitHub today.
145145
///
146+
/// # Example
147+
///
146148
/// ```
147149
/// # use ghrepo::GHRepo;
148150
/// assert!(GHRepo::is_valid_owner("octocat"));
@@ -162,6 +164,8 @@ impl GHRepo {
162164
/// underscores, with the names `.` and `..` being reserved and names
163165
/// ending with `.git` (case insensitive) forbidden.
164166
///
167+
/// # Example
168+
///
165169
/// ```
166170
/// # use ghrepo::GHRepo;
167171
/// assert!(GHRepo::is_valid_name("my-repo"));

0 commit comments

Comments
 (0)