Skip to content

Commit 4989a56

Browse files
committed
syntax: doc comments all the things
1 parent 5716abe commit 4989a56

34 files changed

+1136
-1137
lines changed

src/libsyntax/abi.rs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ pub struct AbiData {
6060
}
6161

6262
pub enum AbiArchitecture {
63-
RustArch, // Not a real ABI (e.g., intrinsic)
64-
AllArch, // An ABI that specifies cross-platform defaults (e.g., "C")
65-
Archs(u32) // Multiple architectures (bitset)
63+
/// Not a real ABI (e.g., intrinsic)
64+
RustArch,
65+
/// An ABI that specifies cross-platform defaults (e.g., "C")
66+
AllArch,
67+
/// Multiple architectures (bitset)
68+
Archs(u32)
6669
}
6770

6871
static AbiDatas: &'static [AbiData] = &[
@@ -84,21 +87,13 @@ static AbiDatas: &'static [AbiData] = &[
8487
AbiData {abi: RustIntrinsic, name: "rust-intrinsic", abi_arch: RustArch},
8588
];
8689

90+
/// Iterates through each of the defined ABIs.
8791
fn each_abi(op: |abi: Abi| -> bool) -> bool {
88-
/*!
89-
*
90-
* Iterates through each of the defined ABIs.
91-
*/
92-
9392
AbiDatas.iter().advance(|abi_data| op(abi_data.abi))
9493
}
9594

95+
/// Returns the ABI with the given name (if any).
9696
pub fn lookup(name: &str) -> Option<Abi> {
97-
/*!
98-
*
99-
* Returns the ABI with the given name (if any).
100-
*/
101-
10297
let mut res = None;
10398

10499
each_abi(|abi| {

0 commit comments

Comments
 (0)