Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit cf1544f

Browse files
committed
ioreg: Remove 'static from documentation example
1 parent ec369dd commit cf1544f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ioreg/ioreg.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,18 @@ look at `cr` in particular,
208208
209209
```
210210
impl UART_cr {
211-
pub fn get(&'static self) -> UART_cr_Get { ... }
211+
pub fn get(&self) -> UART_cr_Get { ... }
212212
213-
pub fn set_rxe(&'static self, new_value: bool) -> UART_cr_Update { ... }
214-
pub fn rxe(&'static self) -> bool { ... }
213+
pub fn set_rxe(&self, new_value: bool) -> UART_cr_Update { ... }
214+
pub fn rxe(&self) -> bool { ... }
215215
216216
// similar methods for `txe`, `rxie`, `txie`
217217
218-
pub fn set_br(&'static self, new_value: u32) -> UART_cr_Update { ... }
219-
pub fn br(&'static self) -> u32 { ... }
218+
pub fn set_br(&self, new_value: u32) -> UART_cr_Update { ... }
219+
pub fn br(&self) -> u32 { ... }
220220
221-
pub fn set_parity(&'static self, new_value: UART_cr_parity) -> UART_cr_Update { ... }
222-
pub fn parity(&'static self) -> UART_cr_parity { ... }
221+
pub fn set_parity(&self, new_value: UART_cr_parity) -> UART_cr_Update { ... }
222+
pub fn parity(&self) -> UART_cr_parity { ... }
223223
}
224224
```
225225
@@ -264,7 +264,7 @@ method is instead produced. For instance, in the case of the `sr`
264264
register's `fe` flag,
265265
266266
```
267-
pub fn clear_fe(&'static self) -> UART_sr_Update { ... }
267+
pub fn clear_fe(&self) -> UART_sr_Update { ... }
268268
```
269269
270270
### Informal grammar

0 commit comments

Comments
 (0)