Skip to content

Commit

Permalink
Merge pull request #73 from i-hate-reality/fixup-org-name
Browse files Browse the repository at this point in the history
fixup organization name
  • Loading branch information
WaffleLapkin authored Nov 14, 2024
2 parents 574f424 + ee08759 commit 2047cdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ menu_items = [
#{name = "tags", url = "$BASE_URL/tags"},

{ name = "about", url = "$BASE_URL/about" },
{ name = "source", url = "https://github.com/iloathereality/blog", newtab = true },
{ name = "source", url = "https://github.com/i-hate-reality/blog", newtab = true },
]

# Whether to show links to earlier and later posts
Expand Down
2 changes: 1 addition & 1 deletion content/02-you-would-not-use-filter_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ This article received some criticism that needed to be addressed.

In response to it this paragraph was added in [2021-09-21 update].

[2021-09-21 update]: https://github.com/iloathereality/blog/pull/30
[2021-09-21 update]: https://github.com/i-hate-reality/blog/pull/30
{% end %}

Turns out `filter_map` has one advantage over `flat_map` --- it can know its own size better. Since `filter_map` can't ever add more elements than there were previously, its [`size_hint`] is `(0, upper)` (where `upper` is the upper bound of the inner iterator). `flat_map`'s `size_hint` on the other hand returns `(0, None)` in most cases (it's a bit more complicated than that since `flat_map` stores iterators it can _sometimes_ know _a bit_ more).
Expand Down

0 comments on commit 2047cdd

Please sign in to comment.