]> Repositorios git - scryer-prolog.git/commitdiff
small typographic corrections
authorMarkus Triska <[email protected]>
Tue, 28 Apr 2020 15:35:53 +0000 (17:35 +0200)
committerMarkus Triska <[email protected]>
Tue, 28 Apr 2020 15:59:49 +0000 (17:59 +0200)
src/prolog/lib/time.pl

index 6fd68517c6e11862013e7e8c87d8ba14f7c84abb..ccf45bdf029383d811f9f32c5c68e0132b4baff1 100644 (file)
@@ -6,7 +6,7 @@
    Reasoning about time stamps would be a useful addition, for example
    by obtaining the current time, comparing and formatting it.
 
-   '$cpu_new' can be replaced by statistics/2 once that is implemented.
+   '$cpu_now' can be replaced by statistics/2 once that is implemented.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
 
 :- module(time, [max_sleep_time/1, sleep/1, time/1]).
@@ -22,7 +22,7 @@ sleep(T) :-
     (   T < 0 ->
         domain_error(not_less_than_zero, T, sleep/1)
     ;   max_sleep_time(N), T > N ->
-        throw(error(reprensentation_error(max_sleep_time), sleep/1))
+        throw(error(representation_error(max_sleep_time), sleep/1))
     ;   '$sleep'(T)
     ).