about summary refs log tree commit diff
path: root/src/etc/htmldocck.py
diff options
context:
space:
mode:
authorDezhi Wu <wu543065657@163.com>2022-08-18 10:13:37 +0800
committerDezhi Wu <wu543065657@163.com>2022-08-31 18:24:55 +0800
commitb1430fb7ca499d517d9f4b3b6c5a81442129c88b (patch)
treeff8f7fbd60789774143168b08862f8edfdcf8526 /src/etc/htmldocck.py
parent7f442f8ba174fd4233a14ef4d7b577aa907db594 (diff)
downloadrust-b1430fb7ca499d517d9f4b3b6c5a81442129c88b.tar.gz
rust-b1430fb7ca499d517d9f4b3b6c5a81442129c88b.zip
Fix a bunch of typo
This PR will fix some typos detected by [typos].

I only picked the ones I was sure were spelling errors to fix, mostly in
the comments.

[typos]: https://github.com/crate-ci/typos
Diffstat (limited to 'src/etc/htmldocck.py')
-rw-r--r--src/etc/htmldocck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py
index baf95627c70..c97fb4b8054 100644
--- a/src/etc/htmldocck.py
+++ b/src/etc/htmldocck.py
@@ -386,7 +386,7 @@ def check_tree_attr(tree, path, attr, pat, regexp):
     return ret
 
 
-# Returns the number of occurences matching the regex (`regexp`) and the text (`pat`).
+# Returns the number of occurrences matching the regex (`regexp`) and the text (`pat`).
 def check_tree_text(tree, path, pat, regexp, stop_at_first):
     path = normalize_xpath(path)
     match_count = 0