Skip to content

Commit 71e710f

Browse files
authored
chore: fix some minor issues in the comments (#1444)
fix some minor issues in the comments Signed-off-by: stemlaud <stemlaud@outlook.com>
1 parent ceb3d45 commit 71e710f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/metaslang/cst/src/kinds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The base types for every node in the CST.
22
3-
/// Convertion methods from kinds to/from `str`.
3+
/// Conversion methods from kinds to/from `str`.
44
pub trait BaseKind: Sized + std::fmt::Debug + Copy + PartialEq + Eq + serde::Serialize {
55
/// Returns the `&str` representation of `self`.
66
fn as_static_str(&self) -> &'static str;

crates/metaslang/cst/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![deny(missing_docs)]
22

3-
//! `metaslang` contains the core utilites that make Slang.
3+
//! `metaslang` contains the core utilities that make Slang.
44
55
pub mod cursor;
66
pub mod kinds;

crates/metaslang/cst/src/nodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl<T: KindTypes> Node<T> {
262262
}
263263
}
264264

265-
/// Returns true if this node is a nonterminal, or if it's a temrinal with a valid kind (that is, any valid token of
265+
/// Returns true if this node is a nonterminal, or if it's a terminal with a valid kind (that is, any valid token of
266266
/// the language).
267267
pub fn is_valid(&self) -> bool {
268268
match self {

documentation/public/user-guide/08-examples/06-inject-logging/examples/logging-rewriter.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class LoggingRewriter extends BaseRewriter {
1212
this.parser = Parser.create(LanguageFacts.latestVersion());
1313
}
1414

15-
// collect the name of the function being travered
15+
// collect the name of the function being traversed
1616
public override rewriteFunctionDefinition(node: NonterminalNode): Node | undefined {
1717
const name = node.children().find((edge) => edge.label == EdgeLabel.Name);
1818
if (!name) {

0 commit comments

Comments
 (0)