From 02a43a665c31fb7e53ff24f39d8b9a82116c0d46 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 28 Jun 2023 20:29:01 +0000 Subject: [PATCH] Alias the disambiguations --- core/shared/src/main/scala/cats/effect/IOLocal.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/shared/src/main/scala/cats/effect/IOLocal.scala b/core/shared/src/main/scala/cats/effect/IOLocal.scala index c83a66d0f2..1eca8c9f9e 100644 --- a/core/shared/src/main/scala/cats/effect/IOLocal.scala +++ b/core/shared/src/main/scala/cats/effect/IOLocal.scala @@ -183,12 +183,12 @@ sealed trait IOLocal[A] { /** * Replaces the current value with `value`, returning the previous value. * - * The combination of [[get]] and [[set(value:*]]. + * The combination of [[get]] and [[set(value:* set]]. * * @see * [[get]] * @see - * [[set(value:*]] + * [[set(value:* set]] */ final def getAndSet(value: A): IO[A] = IO.Local(state => (set(state, value), getOrDefault(state))) @@ -196,12 +196,12 @@ sealed trait IOLocal[A] { /** * Replaces the current value with the initial value, returning the previous value. * - * The combination of [[get]] and [[reset:*]]. + * The combination of [[get]] and [[reset:* reset]]. * * @see * [[get]] * @see - * [[reset:*]] + * [[reset:* reset]] */ final def getAndReset: IO[A] = IO.Local(state => (reset(state), getOrDefault(state))) @@ -213,7 +213,7 @@ sealed trait IOLocal[A] { * All changes to the original value will be visible via lens getter and all changes applied * to 'refracted' value will be forwarded to the original via setter. * - * Note that [[.set(value*]] method requires special mention: while from the `IOLocal[B]` + * Note that [[.set(value* set]] method requires special mention: while from the `IOLocal[B]` * point of view old value will be replaced with a new one, from `IOLocal[A]` POV old value * will be updated via setter. This means that for 'refracted' `IOLocal[B]` use of `set(b)` is * equivalent to `reset *> set(b)`, but it does not hold for original `IOLocal[A]`: