Skip to content

Commit

Permalink
docs: Fix typo on routing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vdnhi authored and davesmith00000 committed Sep 6, 2023
1 parent dff9ed7 commit 551decb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ There are a few ways to implement the `router` function. Please note that in all
If your needs are simple, then the easiest way to implement the router is to use the helpers in the `Routing` module. For example, this one simply forwards on the `href`s as custom `Msg`s. As usual, note that you need to provide suitable `Msg` types:

```scala
def router: Location => Msg = Routing.basic(Msg.Msg.FollowInternalLink(_), Msg.FollowExternalLink(_))
def router: Location => Msg = Routing.basic(Msg.FollowInternalLink(_), Msg.FollowExternalLink(_))
```

There are also `Routing.externalOnly` and `Routing.none` variations.
Expand Down

0 comments on commit 551decb

Please sign in to comment.