Skip to content

Commit b75f52a

Browse files
committed
Fix tests
1 parent 02ee9a6 commit b75f52a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/expressions.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,16 @@ paths are rvalues.
221221

222222
```rust
223223
mod globals {
224-
static STATIC_VAR: i32 = 5;
225-
static mut STATIC_MUT_VAR: i32 = 7;
224+
pub static STATIC_VAR: i32 = 5;
225+
pub static mut STATIC_MUT_VAR: i32 = 7;
226226
}
227227
let local_var = 3;
228228
local_var;
229229
globals::STATIC_VAR;
230230
unsafe { globals::STATIC_MUT_VAR };
231-
let some_constructor = Option::<i32>::Some;
231+
let some_constructor = Option::Some::<i32>;
232232
let push_integer = Vec::<i32>::push;
233-
let slice_eq = <[i32]>::eq;
233+
let slice_reverse = <[i32]>::reverse;
234234
```
235235

236236
## Tuple expressions
@@ -404,7 +404,7 @@ following order:
404404
Note: that in steps 1-4 the receiver is used, not the type of `Self`, which may
405405
not be the same as `A`. For example
406406

407-
```rust
407+
```rust,ignore
408408
// `Self` is `&A`, receiver is `&A`.
409409
impl<'a> Trait for &'a A {
410410
fn method(self) {}

0 commit comments

Comments
 (0)