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(docs): removing note on structs not being outputted #3449

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 0 additions & 4 deletions docs/docs/language_concepts/data_types/08_structs.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Structs

Check warning on line 2 in docs/docs/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)
description:
Explore the Struct data type in Noir. Learn about its methods, see real-world examples, and grasp how to effectively define and use Structs in your Noir programs.

Check warning on line 4 in docs/docs/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)
keywords:
[
noir,
Expand Down Expand Up @@ -45,7 +45,7 @@
}
```

Structs can also be destructured in a pattern, binding each field to a new variable:

Check warning on line 48 in docs/docs/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)

```rust
fn main() {
Expand All @@ -67,7 +67,3 @@

The new variables can be bound with names different from the original struct field names, as
showcased in the `legs --> feet` binding in the example above.

:::note
You can use Structs as inputs to the `main` function, but you can't output them
:::
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Structs

Check warning on line 2 in docs/versioned_docs/version-v0.19.0/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)
description:
Explore the Struct data type in Noir. Learn about its methods, see real-world examples, and grasp how to effectively define and use Structs in your Noir programs.

Check warning on line 4 in docs/versioned_docs/version-v0.19.0/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)
keywords:
[
noir,
Expand Down Expand Up @@ -45,7 +45,7 @@
}
```

Structs can also be destructured in a pattern, binding each field to a new variable:

Check warning on line 48 in docs/versioned_docs/version-v0.19.0/language_concepts/data_types/08_structs.md

View workflow job for this annotation

GitHub Actions / Spellcheck / Spellcheck

Unknown word (Structs)

```rust
fn main() {
Expand All @@ -67,7 +67,3 @@

The new variables can be bound with names different from the original struct field names, as
showcased in the `legs --> feet` binding in the example above.

:::note
You can use Structs as inputs to the `main` function, but you can't output them
:::
Loading