File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ string.
93
93
Because formatting is done via traits, there is no requirement that the
94
94
`d` format actually takes an `int`, but rather it simply requires a type which
95
95
ascribes to the `Signed` formatting trait. There are various parameters which do
96
- require a particular type, however. Namely if the sytnax `{:.*s}` is used, then
96
+ require a particular type, however. Namely if the syntax `{:.*s}` is used, then
97
97
the number of characters to print from the string precedes the actual string and
98
98
must have the type `uint`. Although a `uint` can be printed with `{:u}`, it is
99
99
illegal to reference an argument as such. For example, this is another invalid
Original file line number Diff line number Diff line change 13
13
// part of issue-6919.rs
14
14
15
15
struct C < ' self > {
16
- pub k : & ' self fn ( ) ,
16
+ k : & ' self fn ( ) ,
17
17
}
18
18
19
19
fn no_op ( ) { }
Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ pub fn size_of_val<T>(val: &T) -> uint {
21
21
}
22
22
23
23
pub trait TypeInfo {
24
- pub fn size_of ( ) -> uint ;
25
- pub fn size_of_val ( & self ) -> uint ;
24
+ fn size_of ( ) -> uint ;
25
+ fn size_of_val ( & self ) -> uint ;
26
26
}
27
27
28
28
impl < T > TypeInfo for T {
29
29
/// The size of the type in bytes.
30
- pub fn size_of ( ) -> uint {
30
+ fn size_of ( ) -> uint {
31
31
unsafe { intrinsics:: size_of :: < T > ( ) }
32
32
}
33
33
34
34
/// Returns the size of the type of `self` in bytes.
35
- pub fn size_of_val ( & self ) -> uint {
35
+ fn size_of_val ( & self ) -> uint {
36
36
TypeInfo :: size_of :: < T > ( )
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments