diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2022-03-15 02:00:08 +0100 |
|---|---|---|
| committer | Dylan DPC <dylan.dpc@gmail.com> | 2022-03-15 02:00:08 +0100 |
| commit | 13e889986d3f37014b4f8c3e892457831cb5d03b (patch) | |
| tree | 748660a2ff4ace5f16294935fed7aee3b05fe5fe /compiler/rustc_session/src | |
| parent | 285fa7ecd05dcbfdaf2faaf20400f5f92b39b3c6 (diff) | |
fix typos
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index c42a1530451..a6506dbad16 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -394,7 +394,7 @@ mod desc { pub const parse_linker_plugin_lto: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or the path to the linker plugin"; pub const parse_location_detail: &str = - "comma seperated list of location details to track: `file`, `line`, or `column`"; + "comma separated list of location details to track: `file`, `line`, or `column`"; pub const parse_switch_with_opt_path: &str = "an optional path to the profiling data output directory"; pub const parse_merge_functions: &str = "one of: `disabled`, `trampolines`, or `aliases`"; @@ -1283,7 +1283,7 @@ options! { llvm_time_trace: bool = (false, parse_bool, [UNTRACKED], "generate JSON tracing data file from LLVM data (default: no)"), location_detail: LocationDetail = (LocationDetail::all(), parse_location_detail, [TRACKED], - "comma seperated list of location details to be tracked when using caller_location \ + "comma separated list of location details to be tracked when using caller_location \ valid options are `file`, `line`, and `column` (default: all)"), ls: bool = (false, parse_bool, [UNTRACKED], "list the symbols defined by a library crate (default: no)"), diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index d34a3360a83..707c609d8bf 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -69,7 +69,7 @@ pub struct SymbolGallery { impl SymbolGallery { /// Insert a symbol and its span into symbol gallery. - /// If the symbol has occurred before, ignore the new occurance. + /// If the symbol has occurred before, ignore the new occurrance. pub fn insert(&self, symbol: Symbol, span: Span) { self.symbols.lock().entry(symbol).or_insert(span); } |
