Skip to content

Commit c696a98

Browse files
committed
---
yaml --- r: 236089 b: refs/heads/stable c: dba548d h: refs/heads/master i: 236087: ab71ad9 v: v3
1 parent 3004e3b commit c696a98

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 04578f6611ca5da47b23fa0d10381f7858b3a325
32+
refs/heads/stable: dba548d3634d1f69b6210b642e700c2c41e69ce9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/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)