Skip to content

Commit 41e0bf0

Browse files
committed
doc: fix odoc markups
1 parent ca504b0 commit 41e0bf0

7 files changed

+27
-25
lines changed

src/app/learnocaml_common.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ val get_state_as_save_file : ?include_reports:bool -> unit -> Save.t
122122
(** Sync the local save state with the server state, and returns the merged save
123123
file. The save will be created on the server if it doesn't exist.
124124
125-
This syncs student {b,content}, but never the reports which are only synched
125+
This syncs student {b content}, but never the reports which are only synched
126126
on "Grade" *)
127127
val sync: Token.t -> Save.t Lwt.t
128128

src/app/learnocaml_config.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Learn-OCaml is distributed under the terms of the MIT license. See the
66
* included LICENSE file for details. *)
77

8-
open Js_of_ocaml
8+
module Js = Js_of_ocaml.Js
99

1010
class type learnocaml_config = object
1111
method enableTryocaml: bool Js.optdef_prop

src/app/learnocaml_config.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* Learn-OCaml is distributed under the terms of the MIT license. See the
66
* included LICENSE file for details. *)
77

8-
(* This is not transpiled to learnocaml-static.js, but is an interface
8+
(** This is not transpiled to learnocaml-static.js, but is an interface
99
to the values stored in this file. It is "statically linked" with
1010
learnocaml-common.ml. *)
1111

12-
open Js_of_ocaml
12+
module Js = Js_of_ocaml.Js
1313

1414
class type learnocaml_config = object
1515
method enableTryocaml: bool Js.optdef_prop

src/grader/test_lib.mli

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ module type S = sig
10011001
argument. Here is a list in alphabetic order of each of them.
10021002
10031003
{3 ?⁠after}
1004-
defines a function which is called with the current
1004+
defines a function which is called with the current
10051005
tested inputs, the student {!type:result} and the solution
10061006
{!type:result} and returns a new report which is concatenated to
10071007
reports built with [~test], [~test_sdtout] and [~test_sdterr].
@@ -1010,14 +1010,14 @@ module type S = sig
10101010
appropriate report. Default value is [fun _ _ _ -> []].
10111011
10121012
{3 ?before}
1013-
defines a function called right before the application
1013+
defines a function called right before the application
10141014
of student function to the current tested inputs. Default value
10151015
is [fun _ -> ()]
10161016
10171017
For [test_function_<args_nb>] only.
10181018
10191019
{3 ?before_reference}
1020-
defines a function called right before the
1020+
defines a function called right before the
10211021
application of solution function to the current tested
10221022
inputs. This function is called {b before} student function
10231023
evaluation. Default value is [fun _ -> ()].
@@ -1026,7 +1026,7 @@ module type S = sig
10261026
[test_function_<args_nb>_against_solution].
10271027
10281028
{3 ?before_user}
1029-
defines a function called right before the
1029+
defines a function called right before the
10301030
application of student function to the current tested
10311031
inputs. This function is called {b after} solution function
10321032
evaluation. Default value is [fun _ -> ()].
@@ -1035,7 +1035,7 @@ module type S = sig
10351035
[test_function_<args_nb>_against_solution].
10361036
10371037
{3 ?gen}
1038-
Number of automatically generated tested inputs. Inputs
1038+
Number of automatically generated tested inputs. Inputs
10391039
are generated using either sampler defined in the current
10401040
environment or function defined with [~sampler] optional
10411041
argument. By default, [gen] is [max 5 (10 - List.length
@@ -1047,7 +1047,7 @@ module type S = sig
10471047
See {{!Sampler.sampler_sec}Sampler module}.
10481048
10491049
{3 ?sampler}
1050-
defines the function used to automatically generated
1050+
defines the function used to automatically generated
10511051
inputs. If unset, the grading function checks if a sampler is
10521052
defined for each input type in the current environment. Such
10531053
sampler for a type [some-type] must be named [sample_some-type]
@@ -1060,22 +1060,22 @@ module type S = sig
10601060
See {{!Sampler.sampler_sec}Sampler module}.
10611061
10621062
{3 ?test}
1063-
defines the function used to compare the output of
1063+
defines the function used to compare the output of
10641064
student function and the output of solution function. Default
10651065
value is {!Tester.test}.
10661066
10671067
See {{!Tester.tester_sec}predefined testers and tester builders}.
10681068
10691069
{3 ?test_sdterr}
1070-
defines the function used to compare the standard
1070+
defines the function used to compare the standard
10711071
output produced by student function and the one produced by
10721072
solution function. Default value is {!Tester.io_test_ignore}.
10731073
10741074
See {{!Tester.io_tester_sec}predefined IO testers and IO tester
10751075
builders}.
10761076
10771077
{3 ?test_sdtout}
1078-
defines the function used to compare the standard
1078+
defines the function used to compare the standard
10791079
error produced by student function and the one produced by
10801080
solution function. Default value is {!Tester.io_test_ignore}.
10811081
@@ -1094,7 +1094,7 @@ module type S = sig
10941094

10951095
(** [run_timeout ?time v] executes [v()] under an optional time limit.
10961096
The exceptions raised by [v] are intentionally *not* caught,
1097-
so the caller is able to catch and get a backtrace, if desired.
1097+
so the caller is able to catch and get a backtrace, if desired.
10981098
If given, [time] overrides the global timeout parameter.
10991099
*)
11001100
val run_timeout : ?time:int -> (unit -> 'a) -> 'a

src/state/learnocaml_data.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ module Exercise: sig
210210
Token.Set.t -> assignments -> (status * Token.Set.t) list
211211

212212
(** Computes the current set of skills from the base list (from Meta.t),
213-
using the mutable changes in the Status.skill list. E.g. {[
214-
get_skills ~base:meta.Meta.requirements st.skills_prereq
215-
]} *)
213+
using the mutable changes in the Status.skill list. E.g.
214+
{[get_skills ~base:meta.Meta.requirements st.skills_prereq]} *)
216215
val get_skills: base:string list -> skill list -> string list
217216

218217
(** The opposite of [get_skills]: retrieves the base from the already
@@ -226,7 +225,8 @@ module Exercise: sig
226225
val skills_focus: Meta.t -> t -> string list
227226

228227
(** Generates a skill list that can be saved, such that
229-
{[get_skills ~base (make_skills ~base l) = l]}.
228+
{[get_skills ~base (make_skills ~base l) = l]}
229+
.
230230
231231
Remember to call [skills_base] first on the base if you got the
232232
skills from the meta returned by the server. *)

src/toplevel/learnocaml_toplevel.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type t
5353
the previous outputs are kept and marked as old
5454
(see {!Learnocaml_toplevel_output.oldify}). Otherwise, the output console is cleaned.
5555
@param input_sizing
56-
See (!Learnocaml_toplevel_input.sizing}.
56+
See {!Learnocaml_toplevel_input.sizing}.
5757
@param history
5858
The history storage to use. If none, a new volatile one is created.
5959
@param display_welcome
@@ -114,7 +114,7 @@ val execute_phrase: t ->
114114
Tells if answers of the toplevel are to be displayed.
115115
@param message
116116
Displays [(* message *)] where the code should have been echoed.
117-
@returns
117+
@return
118118
Returns [Success true] whenever the code was correctly
119119
typechecked and its evaluation did not raise an exception nor
120120
timeouted and [false] otherwise. *)
@@ -152,7 +152,7 @@ val prerr_string: t -> string -> unit
152152
val print_html: t -> string -> unit
153153

154154
(** scroll the view to show the last phrase.
155-
Calls {!Learnocaml_toplevel_output.scroll. *)
155+
Calls {!Learnocaml_toplevel_output.scroll}. *)
156156
val scroll: t -> unit
157157

158158
(** Execute the content of the input [textarea].

src/toplevel/learnocaml_toplevel_worker_caller.mli

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
(** An unified interface for OCaml toplevels running in a Web Worker
1010
or not. This module signature is very simalar to the signature of
11-
{!module:Learnocaml_toplevel_toploop}, except: {ul {- all blocking functions
12-
will kill the underlying Web Worker when cancelled; a new worker
13-
will be spawned. } {- it uses function of type [string -> unit] as
14-
outputs instead of [Format.formatter].}}. *)
11+
{!module:Learnocaml_toplevel_toploop}, except:
12+
{ul
13+
{- all blocking functions will kill the underlying Web Worker when
14+
cancelled; a new worker will be spawned. }
15+
{- it uses function of type [string -> unit] as outputs instead
16+
of [Format.formatter].}} *)
1517

1618
open Toploop_results
1719

0 commit comments

Comments
 (0)