Skip to content

Commit 730bd97

Browse files
committed
comment fixes
1 parent d14235c commit 730bd97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tools/miri/tests/native-lib/ptr_read_access.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#include <stdio.h>
22

3-
/* Test: `test_pointer` */
3+
/* Test: test_pointer */
44

55
void print_pointer(const int *ptr) {
66
printf("printing pointer dereference from C: %d\n", *ptr);
77
}
88

9-
/* Test: `test_simple` */
9+
/* Test: test_simple */
1010

1111
typedef struct Simple {
1212
int field;
@@ -16,16 +16,16 @@ int access_simple(const Simple *s_ptr) {
1616
return s_ptr->field;
1717
}
1818

19-
/* Test: `test_nested` */
19+
/* Test: test_nested */
2020

2121
typedef struct Nested {
2222
int value;
2323
struct Nested *next;
2424
} Nested;
2525

26-
// Returns the innermost/last `value` of a `Nested` pointer chain.
26+
// Returns the innermost/last value of a Nested pointer chain.
2727
int access_nested(const Nested *n_ptr) {
28-
// Edge case: `n_ptr == NULL`, first `Nested` is None).
28+
// Edge case: `n_ptr == NULL` (i.e. first Nested is None).
2929
if (!n_ptr) { return 0; }
3030

3131
while (n_ptr->next) {
@@ -35,7 +35,7 @@ int access_nested(const Nested *n_ptr) {
3535
return n_ptr->value;
3636
}
3737

38-
/* Test: `test_static */
38+
/* Test: test_static */
3939

4040
typedef struct Static {
4141
int value;

0 commit comments

Comments
 (0)