Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix broken link #3497

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/language_concepts/06_generics.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Generics
description: Learn how to use Generics in Noir
keywords: [Noir, Rust, generics, functions, structs]

Check warning on line 4 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
---

Generics allow you to use the same functions with multiple different concrete data types. You can
Expand All @@ -17,9 +17,9 @@
}
```

## In Structs

Check warning on line 20 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)

Generics are useful for specifying types in structs. For example, we can specify that a field in a

Check warning on line 22 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
struct will be of a certain generic type. In this case `value` is of type `T`.

```rust
Expand All @@ -40,7 +40,7 @@

fn print(self) {
for _i in 0 .. self.count {
dep::std::println(self.value);

Check warning on line 43 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (println)
}
}
}
Expand Down Expand Up @@ -102,12 +102,12 @@
fn main() {
assert(array_eq([1, 2, 3], [1, 2, 3], |a, b| a == b));

// We can use array_eq even for arrays of structs, as long as we have

Check warning on line 105 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
// an equality function for these structs we can pass in

Check warning on line 106 in docs/docs/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
let array = [MyStruct::new(), MyStruct::new()];
assert(array_eq(array, array, MyStruct::eq));
}
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
2 changes: 1 addition & 1 deletion docs/docs/modules_packages_crates/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ default-member = "crates/a"

Libraries can be defined in a workspace. Inside a workspace, these are consumed as `{ path = "../to_lib" }` dependencies in Nargo.toml.

Inside a workspace, these are consumed as `{ path = "../to_lib" }` dependencies in Nargo.toml.
Inside a workspace, these are consumed as `{ path = "../to_lib" }` dependencies in Nargo.toml.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Generics
description: Learn how to use Generics in Noir
keywords: [Noir, Rust, generics, functions, structs]

Check warning on line 4 in docs/versioned_docs/version-v0.10.5/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
---

Generics allow you to use the same functions with multiple different concrete data types. You can
Expand All @@ -17,9 +17,9 @@
}
```

## In Structs

Check warning on line 20 in docs/versioned_docs/version-v0.10.5/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)

Generics are useful for specifying types in structs. For example, we can specify that a field in a

Check warning on line 22 in docs/versioned_docs/version-v0.10.5/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (structs)
struct will be of a certain generic type. In this case `value` is of type `T`.

```rust
Expand All @@ -40,7 +40,7 @@

fn print(self) {
for _i in 0 .. self.count {
dep::std::println(self.value);

Check warning on line 43 in docs/versioned_docs/version-v0.10.5/language_concepts/06_generics.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (println)
}
}
}
Expand Down Expand Up @@ -110,4 +110,4 @@
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ fn main() {
```

You can see an example of generics in the tests
[here](https://github.com/noir-lang/noir/blob/master/crates/nargo_cli/tests/test_data/generics/src/main.nr).
[here](https://github.com/noir-lang/noir/blob/master/tooling/nargo_cli/tests/execution_success/generics/src/main.nr).
Loading