mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-25 08:53:01 +02:00
Format filenames consistently (#2415)
The style used in the rest of the course is _italic_ filenames, so we should be careful to not suddenly use **bold** names. The style is of course up for debate, but we need to ensure consistency first.
This commit is contained in:
parent
ab78a9e6b8
commit
e5d73d915b
@ -3,7 +3,7 @@
|
|||||||
Files can be sent between Binder clients/servers using the
|
Files can be sent between Binder clients/servers using the
|
||||||
`ParcelFileDescriptor` type:
|
`ParcelFileDescriptor` type:
|
||||||
|
|
||||||
**birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl**:
|
_birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
interface IBirthdayService {
|
interface IBirthdayService {
|
||||||
@ -11,7 +11,7 @@ interface IBirthdayService {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/src/client.rs**:
|
_birthday_service/src/client.rs_:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
fn main() {
|
fn main() {
|
||||||
@ -21,7 +21,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/src/lib.rs**:
|
_birthday_service/src/lib.rs_:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
impl IBirthdayService for BirthdayService {
|
impl IBirthdayService for BirthdayService {
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
AIDL objects can be sent either as a concrete AIDL type or as the type-erased
|
AIDL objects can be sent either as a concrete AIDL type or as the type-erased
|
||||||
`IBinder` interface:
|
`IBinder` interface:
|
||||||
|
|
||||||
**birthday_service/aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl**:
|
_birthday_service/aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl_:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
{{#include ../birthday_service/aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl:IBirthdayInfoProvider}}
|
{{#include ../birthday_service/aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl:IBirthdayInfoProvider}}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl**:
|
_birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
import com.example.birthdayservice.IBirthdayInfoProvider;
|
import com.example.birthdayservice.IBirthdayInfoProvider;
|
||||||
@ -19,7 +19,7 @@ interface IBirthdayService {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/src/client.rs**:
|
_birthday_service/src/client.rs_:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
{{#include ../birthday_service/src/client.rs:InfoProvider}}
|
{{#include ../birthday_service/src/client.rs:InfoProvider}}
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
Binder for Rust supports sending parcelables directly:
|
Binder for Rust supports sending parcelables directly:
|
||||||
|
|
||||||
**birthday_service/aidl/com/example/birthdayservice/BirthdayInfo.aidl**:
|
_birthday_service/aidl/com/example/birthdayservice/BirthdayInfo.aidl_:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
{{#include ../birthday_service/aidl/com/example/birthdayservice/BirthdayInfo.aidl}}
|
{{#include ../birthday_service/aidl/com/example/birthdayservice/BirthdayInfo.aidl}}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl**:
|
_birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
import com.example.birthdayservice.BirthdayInfo;
|
import com.example.birthdayservice.BirthdayInfo;
|
||||||
@ -18,7 +18,7 @@ interface IBirthdayService {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**birthday_service/src/client.rs**:
|
_birthday_service/src/client.rs_:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user