]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo
authorYusuke Tanaka <yusuktan@maguro.dev>
Sun, 20 Sep 2020 15:53:14 +0000 (00:53 +0900)
committerYusuke Tanaka <yusuktan@maguro.dev>
Sun, 20 Sep 2020 15:53:14 +0000 (00:53 +0900)
docs/dev/syntax.md

index c08062ef4dcf146f7759e2f2c7c94a2fffd6ad29..7e3ce9923f3de9efb017367189cde9f41ca48f03 100644 (file)
@@ -72,7 +72,7 @@ Points of note:
 * Trivia and non-trivia tokens are not distinguished on the type level.
 * Each token carries its full text.
 * The original text can be recovered by concatenating the texts of all tokens in order.
-* Accessing a child of particular type (for example, parameter list of a function) generally involves linerary traversing the children, looking for a specific `kind`.
+* Accessing a child of particular type (for example, parameter list of a function) generally involves linear traversing the children, looking for a specific `kind`.
 * Modifying the tree is roughly `O(depth)`.
   We don't make special efforts to guarantee that the depth is not linear, but, in practice, syntax trees are branchy and shallow.
 * If mandatory (grammar wise) node is missing from the input, it's just missing from the tree.