Skip to content

Commit

Permalink
doc: adding example for type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfie John committed Nov 20, 2014
1 parent dd5ce5a commit e87894e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/doc/reference.md
Expand Up @@ -1274,7 +1274,12 @@ specific type; the type-specified aspects of a value include:
For example, the type `(u8, u8)` defines the set of immutable values that are
composite pairs, each containing two unsigned 8-bit integers accessed by
pattern-matching and laid out in memory with the `x` component preceding the
`y` component.
`y` component:

```
type Point = (u8, u8);
let p: Point = (41, 68);
```

### Structures

Expand Down

5 comments on commit e87894e

@bors
Copy link
Contributor

@bors bors commented on e87894e Nov 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on e87894e Nov 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alfie/rust/master = e87894e into auto

@bors
Copy link
Contributor

@bors bors commented on e87894e Nov 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alfie/rust/master = e87894e merged ok, testing candidate = ccc4a7c

@bors
Copy link
Contributor

@bors bors commented on e87894e Nov 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on e87894e Nov 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = ccc4a7c

Please sign in to comment.