Skip to content

Commit 3c6a11f

Browse files
authored
docs: Fix typos (#2102)
Found via `typos --hidden --format brief`
1 parent f20a6a1 commit 3c6a11f

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

js/releases/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class Releases {
141141
* rewrite: false, // preprocess sourcemaps before uploading
142142
* sourceMapReference: true, // add a source map reference to source files
143143
* dedupe: true, // deduplicate already uploaded files
144-
* stripPrefix: [], // remove certain prefices from filenames
145-
* stripCommonPrefix: false, // guess common prefices to remove from filenames
144+
* stripPrefix: [], // remove certain prefixes from filenames
145+
* stripCommonPrefix: false, // guess common prefixes to remove from filenames
146146
* validate: false, // validate source maps and cancel the upload on error
147147
* urlPrefix: '', // add a prefix source map urls after stripping them
148148
* urlSuffix: '', // add a suffix source map urls after stripping them
@@ -159,7 +159,7 @@ class Releases {
159159
async uploadSourceMaps(release, options) {
160160
if (!options || !options.include || !Array.isArray(options.include)) {
161161
throw new Error(
162-
'`options.include` must be a vaild array of paths and/or path descriptor objects.'
162+
'`options.include` must be a valid array of paths and/or path descriptor objects.'
163163
);
164164
}
165165

@@ -246,7 +246,7 @@ class Releases {
246246
*/
247247
async newDeploy(release, options) {
248248
if (!options || !options.env) {
249-
throw new Error('options.env must be a vaild name');
249+
throw new Error('options.env must be a valid name');
250250
}
251251
const args = ['releases', 'deploys', release, 'new'];
252252
return this.execute(helper.prepareCommand(args, DEPLOYS_SCHEMA, options), null);

src/api/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ impl<'a> AuthenticatedApi<'a> {
454454
self.api.put(path, body)
455455
}
456456

457-
/// Convinience method to call self.api.request.
457+
/// Convenience method to call self.api.request.
458458
fn request(&self, method: Method, url: &str) -> ApiResult<ApiRequest> {
459459
self.api.request(method, url, None)
460460
}
@@ -496,15 +496,15 @@ impl<'a> AuthenticatedApi<'a> {
496496
)
497497
};
498498

499-
let mut checkums_qs = String::new();
499+
let mut checksums_qs = String::new();
500500
for checksum in checksums.iter() {
501-
checkums_qs.push_str(&format!("&checksum={}", QueryArg(checksum)));
501+
checksums_qs.push_str(&format!("&checksum={}", QueryArg(checksum)));
502502
}
503503
// We have a 16kb buffer for reach request configured in nginx,
504504
// so do not even bother trying if it's too long.
505505
// (16_384 limit still leaves us with 384 bytes for the url itself).
506-
if !checkums_qs.is_empty() && checkums_qs.len() <= 16_000 {
507-
path.push_str(&checkums_qs);
506+
if !checksums_qs.is_empty() && checksums_qs.len() <= 16_000 {
507+
path.push_str(&checksums_qs);
508508
}
509509

510510
let resp = self.get(&path)?;

src/commands/sourcemaps/explain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fn fetch_release_artifacts(org: &str, project: &str, release: &str) -> Result<Ve
135135
}
136136

137137
// Try to find an artifact which matches the path part of the url extracted from the stacktrace frame,
138-
// prefixed with the default `~/`, which is a "glob-like" pattern for matchin any hostname.
138+
// prefixed with the default `~/`, which is a "glob-like" pattern for matching any hostname.
139139
fn find_matching_artifact(artifacts: &[Artifact], path: &str) -> Result<Artifact> {
140140
let full_match = artifacts.iter().find(|a| a.name == path);
141141
let partial_match = artifacts
@@ -348,7 +348,7 @@ fn resolve_sourcemap_url(abs_path: &str, sourcemap_location: &str) -> Result<Str
348348
.map_err(|e| e.into())
349349
}
350350

351-
// Unify url to be prefixed with the default `~/`, which is a "glob-like" pattern for matchin any hostname.
351+
// Unify url to be prefixed with the default `~/`, which is a "glob-like" pattern for matching any hostname.
352352
//
353353
// We only need the `pathname` portion of the url, so if it's absolute, just extract it.
354354
// If it's relative however, parse any random url (example.com) and join it with our relative url,

src/utils/chunks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub fn upload_chunks(
188188
// The upload is executed in parallel batches. Each batch aggregates objects
189189
// until it exceeds the maximum size configured in ChunkUploadOptions. We
190190
// keep track of the overall progress and potential errors. If an error
191-
// ocurrs, all subsequent requests will be cancelled and the error returned.
191+
// occurs, all subsequent requests will be cancelled and the error returned.
192192
// Otherwise, the after every successful update, the overall progress is
193193
// updated and rendered.
194194
let batches: Vec<_> = chunks

src/utils/dif_upload.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl<'a> DifSource<'a> {
407407
/// file name.
408408
fn get_relative_fs(base: &Path, path: &Path) -> Option<ByteView<'static>> {
409409
// Use parent() to get to the directory and then move relative from
410-
// there. ByteView will internally cannonicalize the path and resolve
410+
// there. ByteView will internally canonicalize the path and resolve
411411
// symlinks.
412412
base.parent()
413413
.and_then(|p| ByteView::open(p.join(path)).ok())
@@ -896,7 +896,7 @@ fn collect_object_dif<'a>(
896896

897897
// Invoke logic to retrieve attachments specific to the kind
898898
// of object file. These are used for processing. Since only
899-
// dSYMs equire processing currently, all other kinds are
899+
// dSYMs require processing currently, all other kinds are
900900
// skipped.
901901
let attachments = match object.file_format() {
902902
FileFormat::MachO => find_uuid_plists(&object, &mut source),

src/utils/file_upload.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub struct SourceFile {
118118
pub path: PathBuf,
119119
pub contents: Vec<u8>,
120120
pub ty: SourceFileType,
121-
/// A map of headers attatched to the source file.
121+
/// A map of headers attached to the source file.
122122
///
123123
/// Headers that `sentry-cli` knows about are
124124
/// * "debug-id" for a file's debug id
@@ -199,7 +199,7 @@ impl<'a> FileUpload<'a> {
199199
}
200200

201201
// Do not permit uploads of more than 20k files if the server does not
202-
// support artifact bundles. This is a termporary downside protection to
202+
// support artifact bundles. This is a temporary downside protection to
203203
// protect users from uploading more sources than we support.
204204
if self.files.len() > 20_000 {
205205
bail!(

src/utils/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn parse_link_header(s: &str) -> Vec<HashMap<&str, &str>> {
6363
rv
6464
}
6565

66-
/// Checkes whether an url starts with http:// or https:// prefix
66+
/// Checks whether an url starts with http:// or https:// prefix
6767
pub fn is_absolute_url(url: &str) -> bool {
6868
url.starts_with("http://") || url.starts_with("https://")
6969
}

src/utils/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub fn load_dotenv() -> DotenvResult<()> {
146146
}
147147
.map_or_else(
148148
|error| {
149-
// We only propogate errors if the .env file was found and failed to load.
149+
// We only propagate errors if the .env file was found and failed to load.
150150
if error.not_found() {
151151
Ok(())
152152
} else {

0 commit comments

Comments
 (0)