Skip to content

Commit 6dfdf17

Browse files
authored
chore: fix some typos in comments (#1090)
Signed-off-by: luohewuyang <[email protected]>
1 parent b06048d commit 6dfdf17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

data-url/src/mime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn parse_parameters(s: &str, parameters: &mut Vec<(String, String)>) {
9595
let piece = piece.trim_start_matches(http_whitespace);
9696
let (name, value) = split2(piece, '=');
9797
// We can not early return on an invalid name here, because the value
98-
// parsing later may consume more semicolon seperated pieces.
98+
// parsing later may consume more semicolon separated pieces.
9999
let name_valid =
100100
!name.is_empty() && only_http_token_code_points(name) && !contains(parameters, name);
101101
if let Some(value) = value {

debug_metadata/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The GNU debugger (GDB) supports defining custom debugger views using Pretty Prin
1818
Pretty printers are written as python scripts that describe how a type should be displayed
1919
when loaded up in GDB/LLDB. (See: https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing.html#Pretty-Printing)
2020
The pretty printers provide patterns, which match type names, and for matching
21-
types, descibe how to display those types. (For writing a pretty printer, see: https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Pretty_002dPrinter.html#Writing-a-Pretty_002dPrinter).
21+
types, describe how to display those types. (For writing a pretty printer, see: https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Pretty_002dPrinter.html#Writing-a-Pretty_002dPrinter).
2222

2323
### Embedding Visualizers
2424

url/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ impl Url {
27462746
str_len.saturating_sub(scheme_diff + 2)
27472747
}
27482748
} else if cfg!(windows) {
2749-
// remove scheme: - has posssible \\ for hostname
2749+
// remove scheme: - has possible \\ for hostname
27502750
str_len.saturating_sub(self.scheme().len() + 1)
27512751
} else {
27522752
// remove scheme://

0 commit comments

Comments
 (0)