Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #611

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/gists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ impl<'octo> UpdateGistBuilder<'octo> {
}
}

/// Update the description of the the gist with the content provided by `description`.
/// Update the description of the gist with the content provided by `description`.
pub fn description(mut self, description: impl Into<String>) -> Self {
self.data.description = Some(description.into());
self
Expand Down
4 changes: 2 additions & 2 deletions src/api/repos/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl<'octo, 'r> UpdateFileBuilder<'octo, 'r> {
self
}

/// The person that commited the file.
/// The person that committed the file.
pub fn commiter(mut self, commiter: impl Into<models::repos::CommitAuthor>) -> Self {
self.commiter = Some(commiter.into());
self
Expand Down Expand Up @@ -199,7 +199,7 @@ impl<'octo, 'r> DeleteFileBuilder<'octo, 'r> {
self
}

/// The person that commited the file.
/// The person that committed the file.
pub fn commiter(mut self, commiter: impl Into<models::repos::CommitAuthor>) -> Self {
self.commiter = Some(commiter.into());
self
Expand Down
4 changes: 2 additions & 2 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl DeviceCodes {
.await?;
Ok(match poll {
TokenResponse::Ok(k) => Either::Left(k),
TokenResponse::Contine { error } => Either::Right(error),
TokenResponse::Continue { error } => Either::Right(error),
})
}
}
Expand All @@ -240,7 +240,7 @@ enum TokenResponse {
// We got the auth information.
Ok(OAuth),
// We got an error that allows us to continue polling.
Contine { error: Continue },
Continue { error: Continue },
}

/// Control flow when polling the device flow authorization.
Expand Down
Loading