diff --git a/porque-rust.html b/porque-rust.html index 3c348cb..49f3883 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -93,6 +93,19 @@ +
+
+

História

+ + +
+
+

@@ -711,11 +724,11 @@ OK(())

-

Structs

-
+

Structs

+

-struct Present {
+struct Gift {
     package_color: String,
     content: String
 }
@@ -725,6 +738,14 @@ struct Present {
                              Structs em Rust são basicamente o mesmo que em C.
                         
                     
+ +
+

Structs

+ +

+let presente = Gift { "red", "A GIFT!" };
+						
+
@@ -931,6 +952,18 @@ fn call_isan(num: &str) -> Result<Success, Error> {
+
+

E agora?

+ + +
+