Skip to content

Commit a7de370

Browse files
committed
adding documentation comments and attributes to the mix
1 parent 253e173 commit a7de370

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-function-history-lib/src/test_functions.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ pub fn not_empty_test() {
77
println!("{{ {} added more chages", "{");
88
}
99

10+
#[derive(Debug)]
1011
pub struct Test<a> {
1112
pub contents: String,
1213
pub history: Vec<a>,
1314
}
1415

1516
impl<a>Test<a> {
17+
/// empty test
1618
pub fn empty_test<'a>() {
1719
println!("empty test");
1820
}
@@ -38,6 +40,7 @@ impl<a>Test<a> {
3840
}
3941

4042
pub fn test_in_test_in_test() {
43+
#[derive(Debug)]
4144
pub fn empty_test() {
4245

4346
}
@@ -90,6 +93,7 @@ extern "C" {
9093
}
9194

9295
pub fn function_within(t: String) -> i32 {
96+
//! function within
9397
pub fn empty_test(t: String) -> i32 {
9498
println!("empty test");
9599
t.parse()
@@ -111,6 +115,7 @@ where T: super_trait {
111115

112116
}
113117

118+
#[derive(Debug)]
114119
extern {
115120
pub fn empty_test(t: String) -> i32 {
116121
println!("empty test");

0 commit comments

Comments
 (0)