Skip to content

Commit ea2b27d

Browse files
bors[bot]Veetaha
andauthored
Merge #2865
2865: fix(mixed): fixed a couple of typos and added a todo r=kjeremy a=Veetaha Fixed a couple of typos and added a todo while studying the codebase. Co-authored-by: Veetaha <[email protected]>
2 parents 0404788 + ecf3b3c commit ea2b27d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

crates/ra_parser/src/grammar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! This is the actual "grammar" of the Rust language.
22
//!
33
//! Each function in this module and its children corresponds
4-
//! to a production of the format grammar. Submodules roughly
4+
//! to a production of the formal grammar. Submodules roughly
55
//! correspond to different *areas* of the grammar. By convention,
66
//! each submodule starts with `use super::*` import and exports
77
//! "public" productions via `pub(super)`.

xtask/src/codegen/gen_syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! This module generate AST datatype used by rust-analyzer.
1+
//! This module generates AST datatype used by rust-analyzer.
22
//!
33
//! Specifically, it generates the `SyntaxKind` enum and a number of newtype
44
//! wrappers around `SyntaxNode` which implement `ra_syntax::AstNode`.

xtask/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
5353
write!(rustfmt.stdin.take().unwrap(), "{}", text)?;
5454
let output = rustfmt.wait_with_output()?;
5555
let stdout = String::from_utf8(output.stdout)?;
56+
// TODO: update the preable: replace ra_tools with the relevant path
5657
let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
5758
Ok(format!("//! {}\n\n{}", preamble, stdout))
5859
}

0 commit comments

Comments
 (0)