]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/second-edition/src/ch05-00-structs.md
New upstream version 1.26.0+dfsg1
[rustc.git] / src / doc / book / second-edition / src / ch05-00-structs.md
index a2c6f46632395dc1a1bcfb6927528f71aa71a731..aa9cb77f835125fa5dbdd856aa17cb41f2f36bc1 100644 (file)
@@ -1,11 +1,11 @@
 # Using Structs to Structure Related Data
 
-A *struct*, or *structure*, is a custom data type that lets us name and package
-together multiple related values that make up a meaningful group. If you’re
-familiar with an object-oriented language, a *struct* is like an object’s data
-attributes. In this chapter, we’ll compare and contrast tuples with structs,
-demonstrate how to use structs, and discuss how to define methods and
-associated functions to specify behavior associated with a struct’s data. The
-struct and *enum* (which is discussed in Chapter 6) concepts are the building
-blocks for creating new types in your program’s domain to take full advantage
-of Rust’s compile time type checking.
+A *struct*, or *structure*, is a custom data type that lets you name and
+package together multiple related values that make up a meaningful group. If
+you’re familiar with an object-oriented language, a *struct* is like an
+object’s data attributes. In this chapter, we’ll compare and contrast tuples
+with structs, demonstrate how to use structs, and discuss how to define methods
+and associated functions to specify behavior associated with a struct’s data.
+Structs and enums (discussed in Chapter 6) are the building blocks for creating
+new types in your program’s domain to take full advantage of Rust’s compile
+time type checking.