Skip to content

Commit

Permalink
ioreg: Remove 'static from documentation example
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Aug 28, 2014
1 parent f7331f0 commit 0b2b3a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ioreg/ioreg.rs
Expand Up @@ -208,18 +208,18 @@ look at `cr` in particular,
```
impl UART_cr {
pub fn get(&'static self) -> UART_cr_Get { ... }
pub fn get(&self) -> UART_cr_Get { ... }
pub fn set_rxe(&'static self, new_value: bool) -> UART_cr_Update { ... }
pub fn rxe(&'static self) -> bool { ... }
pub fn set_rxe(&self, new_value: bool) -> UART_cr_Update { ... }
pub fn rxe(&self) -> bool { ... }
// similar methods for `txe`, `rxie`, `txie`
pub fn set_br(&'static self, new_value: u32) -> UART_cr_Update { ... }
pub fn br(&'static self) -> u32 { ... }
pub fn set_br(&self, new_value: u32) -> UART_cr_Update { ... }
pub fn br(&self) -> u32 { ... }
pub fn set_parity(&'static self, new_value: UART_cr_parity) -> UART_cr_Update { ... }
pub fn parity(&'static self) -> UART_cr_parity { ... }
pub fn set_parity(&self, new_value: UART_cr_parity) -> UART_cr_Update { ... }
pub fn parity(&self) -> UART_cr_parity { ... }
}
```
Expand Down Expand Up @@ -264,7 +264,7 @@ method is instead produced. For instance, in the case of the `sr`
register's `fe` flag,
```
pub fn clear_fe(&'static self) -> UART_sr_Update { ... }
pub fn clear_fe(&self) -> UART_sr_Update { ... }
```
### Informal grammar
Expand Down

1 comment on commit 0b2b3a7

@bgamari
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=bharrisau

This passed in https://travis-ci.org/hackndev/zinc/builds/33755318 which included build fixes in hackndev#142 which has yet to be merged.

Please sign in to comment.