1
0
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:
Seth Paydar 2023-10-12 02:42:56 -07:00 committed by GitHub
parent b1cd19ed20
commit de0e8e6b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())