Skip to content

Commit

Permalink
Move "Match Expressions" and "As Operator" (in that order) into the "…
Browse files Browse the repository at this point in the history
…Expressions" section, between "Control Structures" and "Methods" (#539)
  • Loading branch information
shaedrich authored Apr 2, 2024
1 parent f00d577 commit dc2562b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/pattern-matching/as.md → docs/expressions/as.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ actor Main
end
```

You can learn more about matching on type in the [captures section of the match documentation](/pattern-matching/match.md#captures).
You can learn more about matching on type in the [captures section of the match documentation](/expressions/match.md#captures).

## Specify the type of items in an array literal

Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions docs/pattern-matching/index.md

This file was deleted.

6 changes: 2 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ nav:
- Operators: "expressions/ops.md"
- Arithmetic: "expressions/arithmetic.md"
- Control Structures: "expressions/control-structures.md"
- Match Expressions: "expressions/match.md"
- As Operator: "expressions/as.md"
- Methods: "expressions/methods.md"
- Errors: "expressions/errors.md"
- Equality in Pony: "expressions/equality.md"
Expand Down Expand Up @@ -123,10 +125,6 @@ nav:
- Overview: "generics/index.md"
- Generics and Reference Capabilities: "generics/generics-and-reference-capabilities.md"
- Constraints: "generics/generic-constraints.md"
- Pattern Matching:
- Overview: "pattern-matching/index.md"
- Match Expressions: "pattern-matching/match.md"
- As Operator: "pattern-matching/as.md"
- Packages:
- Overview: "packages/index.md"
- Use Statement: "packages/use-statement.md"
Expand Down
18 changes: 18 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,21 @@ ID = "Your_Site_ID"
to = "/reference-capabilities/:splat"
status = 301
force = true

[[redirects]]
from = "/pattern-matching/index.html"
to = "/expressions/match.html"
status = 301
force = true

[[redirects]]
from = "/pattern-matching/match.html"
to = "/expressions/match.html"
status = 301
force = true

[[redirects]]
from = "/pattern-matching/as.html"
to = "/expressions/as.html"
status = 301
force = true

0 comments on commit dc2562b

Please sign in to comment.