@@ -514,13 +514,13 @@ trait SourceOps[+T] { this: Source[T] =>
514
514
}
515
515
c
516
516
517
- /** Returns the first element from this source wrapped in ` Some` or ` None` when the source is empty. Note that `headOption` is not an
517
+ /** Returns the first element from this source wrapped in [[ Some ]] or [[ None ]] when the source is empty. Note that `headOption` is not an
518
518
* idempotent operation on source as it receives elements from it.
519
519
*
520
520
* @return
521
521
* A `Some(first element)` if source is not empty or `None` otherwise.
522
522
* @throws ChannelClosedException.Error
523
- * When ` receive()` fails.
523
+ * When [[ receive ]] fails.
524
524
* @example
525
525
* {{{
526
526
* import ox.*
@@ -542,16 +542,16 @@ trait SourceOps[+T] { this: Source[T] =>
542
542
case t : T @ unchecked => Some (t)
543
543
}
544
544
545
- /** Returns the first element from this source or throws ` NoSuchElementException` when the source is empty. In case when the ` receive()`
546
- * operation fails with exception then ` ChannelClosedException.Error`` thrown. Note that `headOption ` is not an idempotent operation on
545
+ /** Returns the first element from this source or throws [[ NoSuchElementException ]] when the source is empty. In case when the [[ receive ]]
546
+ * operation fails with exception then [[ ChannelClosedException.Error ]] is thrown. Note that `head ` is not an idempotent operation on
547
547
* source as it receives elements from it.
548
548
*
549
549
* @return
550
550
* A first element if source is not empty or throws otherwise.
551
551
* @throws NoSuchElementException
552
- * When source is empty or `receive()` failed without error .
552
+ * When a source is empty.
553
553
* @throws ChannelClosedException.Error
554
- * When ` receive()` fails.
554
+ * When [[ receive ]] fails.
555
555
* @example
556
556
* {{{
557
557
* import ox.*
0 commit comments