mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-14 14:10:05 +02:00
fix: typo in mark_visited fn docstring (#1355)
Fixes a typo in the `mark_visited` function docstring. See [`HashSet.insert` documentation](https://doc.rust-lang.org/stable/std/collections/struct.HashSet.html#method.insert)
This commit is contained in:
parent
b1cd19ed20
commit
de0e8e6b6d
@ -93,7 +93,7 @@ impl CrawlState {
|
||||
url_domain == self.domain
|
||||
}
|
||||
|
||||
/// Mark the given page as visited, returning true if it had already
|
||||
/// Mark the given page as visited, returning false if it had already
|
||||
/// been visited.
|
||||
fn mark_visited(&mut self, url: &Url) -> bool {
|
||||
self.visited_pages.insert(url.as_str().to_string())
|
||||
|
Loading…
Reference in New Issue
Block a user