Skip to content

Commit

Permalink
fix: typo in mark_visited fn docstring (google#1355)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
spaydar authored Oct 12, 2023
1 parent b1cd19e commit de0e8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exercises/concurrency/link-checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit de0e8e6

Please sign in to comment.