Skip to content

Commit f7f994f

Browse files
committed
fix
1 parent 088322a commit f7f994f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/src/tools.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ module FormatDocstrings = struct
843843
source )
844844
in
845845
let errors = !errors in
846-
if not (List.is_empty errors) then (
846+
if List.length errors > 0 then (
847847
errors |> String.concat "\n" |> print_endline;
848848
Error (Printf.sprintf "Error formatting docstrings."))
849849
else if formatted_content <> source then (

0 commit comments

Comments
 (0)