diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-16 15:12:35 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-16 15:12:35 -0500 |
commit | 5a1a60e65eb6904f383d18fae271684b4264acd9 (patch) | |
tree | 9fe98f52ef797036754cde7ebd37ab7c5e1ac9ac /src/lib/math | |
parent | c9b2fe0460c417278c856db3ee6388f7e3277719 (diff) | |
download | tor-5a1a60e65eb6904f383d18fae271684b4264acd9.tar.gz tor-5a1a60e65eb6904f383d18fae271684b4264acd9.zip |
Revise struct names in examples in comments to end with _t
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/prob_distr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/math/prob_distr.h b/src/lib/math/prob_distr.h index 4498b0a8bd..a036073b93 100644 --- a/src/lib/math/prob_distr.h +++ b/src/lib/math/prob_distr.h @@ -75,7 +75,7 @@ struct dist_t { * If you want to define a distribution type, define a canonical set of * operations and define a type-specific initializer element like so: * -* struct foo { +* struct foo_t { * struct dist_t base; * int omega; * double tau; @@ -84,11 +84,11 @@ struct dist_t { * * struct dist_ops_t foo_ops = ...; * -* #define FOO(OBJ) DIST_BASE_TYPED(&foo_ops, OBJ, struct foo) +* #define FOO(OBJ) DIST_BASE_TYPED(&foo_ops, OBJ, struct foo_t) * * Then users can do: * -* struct foo mydist = { +* struct foo_t mydist = { * FOO(mydist), * .omega = ..., * .tau = ..., @@ -97,7 +97,7 @@ struct dist_t { * * If you accidentally write * -* struct bar mydist = { +* struct bar_t mydist = { * FOO(mydist), * ... * }; |