Skip to content

Commit

Permalink
chore(docs): Fix link in the Data Types page (#4527)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Existing link in the [Data Types
page](https://noir-lang.org/docs/dev/noir/concepts/data_types/) to the
generics page opens
https://noir-lang.org/assets/files/generics-ff7aa43d69e6cca523a1f2e74064a062.md
in a separate tab, instead of the page in the docs.

### 1. Click:

<img width="995" alt="image"
src="https://github.com/noir-lang/noir/assets/72797635/9c5abde8-5ceb-44da-8c8b-ff9ebf6c7584">

### 2. Opens:
 
<img width="822" alt="image"
src="https://github.com/noir-lang/noir/assets/72797635/e3db4d33-995e-4400-b107-eb2200bb7c16">

## Summary\*

Fix link to relatively redirects to the generics page.

## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Co-authored-by: José Pedro Sousa <outgoing@zpedro.dev>
  • Loading branch information
3 people authored Apr 9, 2024
1 parent ac1c33e commit b8dd770
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/noir/concepts/data_types/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn main() {
}
```

Type aliases can also be used with [generics](@site/docs/noir/concepts/generics.md):
Type aliases can also be used with [generics](../generics.md):

```rust
type Id<Size> = Size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn main() {
}
```

Type aliases can also be used with [generics](@site/docs/noir/concepts/generics.md):
Type aliases can also be used with [generics](../generics.md):

```rust
type Id<Size> = Size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn main() {
}
```

Type aliases can also be used with [generics](@site/docs/noir/concepts/generics.md):
Type aliases can also be used with [generics](../generics.md):

```rust
type Id<Size> = Size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn main() {
}
```

Type aliases can also be used with [generics](@site/docs/noir/concepts/generics.md):
Type aliases can also be used with [generics](../generics.md):

```rust
type Id<Size> = Size;
Expand Down

0 comments on commit b8dd770

Please sign in to comment.