Skip to content

Commit

Permalink
fixed docs refering to github in s3 backend documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger authored and jaemk committed Nov 23, 2020
1 parent 85873b2 commit d33eeb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [unreleased]
### Added
### Changed
- Fixed docs refering to github in s3 backend
### Removed

## [0.20.0]
Expand Down
10 changes: 5 additions & 5 deletions src/backends/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl ReleaseList {
}
}

/// `github::Update` builder
/// `s3::Update` builder
///
/// Configure download and installation from
/// `https://<bucket_name>.s3.<region>.amazonaws.com/<asset filename>`
Expand Down Expand Up @@ -182,7 +182,7 @@ impl Default for UpdateBuilder {
}
}

/// Configure download and installation from repo
/// Configure download and installation from bucket
impl UpdateBuilder {
/// Initialize a new builder
pub fn new() -> Self {
Expand All @@ -195,7 +195,7 @@ impl UpdateBuilder {
self
}

/// Set the repo name, used to build a github api url
/// Set the bucket name, used to build a s3 api url
pub fn bucket_name(&mut self, name: &str) -> &mut Self {
self.bucket_name = Some(name.to_owned());
self
Expand Down Expand Up @@ -274,7 +274,7 @@ impl UpdateBuilder {
/// The path provided should be:
///
/// ```
/// # use self_update::backends::github::Update;
/// # use self_update::backends::s3::Update;
/// # fn run() -> Result<(), Box<::std::error::Error>> {
/// Update::configure()
/// .bin_path_in_archive("bin/myapp")
Expand Down Expand Up @@ -371,7 +371,7 @@ impl UpdateBuilder {
}
}

/// Updates to a specified or latest release distributed via GitHub
/// Updates to a specified or latest release distributed via S3
#[derive(Debug)]
pub struct Update {
end_point: EndPoint,
Expand Down

0 comments on commit d33eeb4

Please sign in to comment.