diff --git a/docs/docs/noir/concepts/data_types/structs.md b/docs/docs/noir/concepts/data_types/structs.md index 29951ae843a..4b0a8001226 100644 --- a/docs/docs/noir/concepts/data_types/structs.md +++ b/docs/docs/noir/concepts/data_types/structs.md @@ -52,7 +52,7 @@ Structs can also be destructured in a pattern, binding each field to a new varia fn main() { let Animal { hands, legs: feet, eyes } = get_octopus(); - let ten = hands + feet + eyes as u8; + let ten = hands + feet + eyes as Field; } fn get_octopus() -> Animal { @@ -93,4 +93,4 @@ pub struct Animal { pub(crate) legs: Field, // accessible from the entire crate pub eyes: u8, // accessible from anywhere } -``` \ No newline at end of file +```