@@ -21,7 +21,7 @@ macro_rules! doc {
2121 /// The supplied futures are stored inline and do not require allocating a
2222 /// `Vec`.
2323 ///
24- /// ### Fairness
24+ /// ## Runtime characteristics
2525 ///
2626 /// By running all async expressions on the current task, the expressions are
2727 /// able to run **concurrently** but not in **parallel**. This means all
@@ -32,7 +32,7 @@ macro_rules! doc {
3232 ///
3333 /// [`tokio::spawn`]: crate::spawn
3434 ///
35- /// # Poll Ordering
35+ /// ## Fairness
3636 ///
3737 /// By default, `join!`'s generated future rotates which contained
3838 /// future is polled first whenever it is woken.
@@ -74,7 +74,7 @@ macro_rules! doc {
7474 /// }
7575 /// ```
7676 ///
77- /// Using the `biased;` mode to control polling order.
77+ /// Using the `biased;` mode to control polling order.
7878 ///
7979 /// ```
8080 /// async fn do_stuff_async() {
@@ -145,11 +145,9 @@ doc! {macro_rules! join {
145145
146146 const COUNT : u32 = $( $total) * ;
147147
148- // Each time the future created by poll_fn is polled,
149- // if not running in biased mode,
150- // a different future will be polled first
151- // to ensure every future passed to join! gets a chance to make progress even if
152- // one of the futures consumes the whole budget.
148+ // Each time the future created by poll_fn is polled, if not using biased mode,
149+ // a different future is polled first to ensure every future passed to join!
150+ // can make progress even if one of the futures consumes the whole budget.
153151 let mut rotator = <$rotator>:: default ( ) ;
154152
155153 poll_fn( move |cx| {
@@ -225,14 +223,14 @@ doc! {macro_rules! join {
225223 ( ) => { async { } . await }
226224} }
227225
228- /// Rotates by one every [`Self::num_skip`] call up to COUNT - 1.
226+ /// Rotates by one each [`Self::num_skip`] call up to COUNT - 1.
229227#[ derive( Default , Debug ) ]
230228pub struct Rotator < const COUNT : u32 > {
231229 next : u32 ,
232230}
233231
234232impl < const COUNT : u32 > Rotator < COUNT > {
235- /// Rotates by one every [`Self::num_skip`] call up to COUNT - 1
233+ /// Rotates by one each [`Self::num_skip`] call up to COUNT - 1
236234 #[ inline]
237235 pub fn num_skip ( & mut self ) -> u32 {
238236 let num_skip = self . next ;
@@ -249,7 +247,7 @@ impl<const COUNT: u32> Rotator<COUNT> {
249247pub struct BiasedRotator { }
250248
251249impl BiasedRotator {
252- /// Always returns 0
250+ /// Always returns 0.
253251 #[ inline]
254252 pub fn num_skip ( & mut self ) -> u32 {
255253 0
0 commit comments