Browse Source

fix unattached doc comments

nottui-full-sensor
Frédéric Bour 11 months ago
parent
commit
de82afccac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/nottui-widgets/nottui_widgets.ml

+ 2
- 2
lib/nottui-widgets/nottui_widgets.ml View File

@ -603,10 +603,10 @@ let toggle, toggle' =
in
Lwd.map2 mk_but (Lwd.get st) lbl
in
(** Similar to {!toggle}, except it directly reflects the state of a variable. *)
(* Similar to {!toggle}, except it directly reflects the state of a variable. *)
let toggle' (lbl:string Lwd.t) (v:bool Lwd.var) : Ui.t Lwd.t =
toggle_ v lbl (Lwd.set v)
(** a toggle, with a true/false state *)
(* a toggle, with a true/false state *)
and toggle ?(init=false) (lbl:string Lwd.t) (f:bool -> unit) : Ui.t Lwd.t =
let st = Lwd.var init in
toggle_ st lbl f


Loading…
Cancel
Save