Skip to content

Commit 9cc546f

Browse files
committed
---
yaml --- r: 229018 b: refs/heads/try c: dba548d h: refs/heads/master v: v3
1 parent 36493e5 commit 9cc546f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 04578f6611ca5da47b23fa0d10381f7858b3a325
4+
refs/heads/try: dba548d3634d1f69b6210b642e700c2c41e69ce9
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/doc/tarpl/repr-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct FooRepr {
109109

110110
And indeed this is approximately how it would be laid out in general
111111
(modulo the size and position of `tag`). However there are several cases where
112-
such a representation is ineffiecient. The classic case of this is Rust's
112+
such a representation is inefficient. The classic case of this is Rust's
113113
"null pointer optimization". Given a pointer that is known to not be null
114114
(e.g. `&u32`), an enum can *store* a discriminant bit *inside* the pointer
115115
by using null as a special value. The net result is that
@@ -121,4 +121,4 @@ nested enums pooling their tags into a single descriminant, as they are by
121121
definition known to have a limited range of valid values. In principle enums can
122122
use fairly elaborate algorithms to cache bits throughout nested types with
123123
special constrained representations. As such it is *especially* desirable that
124-
we leave enum layout unspecified today.
124+
we leave enum layout unspecified today.

0 commit comments

Comments
 (0)