diff --git a/src/jesse_json_path.erl b/src/jesse_json_path.erl
index 4438d24..4d34325 100644
--- a/src/jesse_json_path.erl
+++ b/src/jesse_json_path.erl
@@ -295,7 +295,7 @@ to_path(Value) -> "." ++ to_path_item(Value).
%% @doc Return string representation of the given Path object.
%%
%% For example, if the path is constructed by pushing the following elements
-%% <<"root">>, "object", <<"array">>, 12, item, <<"field">>
+%% <<"root">>, "object", <<"array">>, 12, item, <<"field">>
%% the resulting path will be the following string:
%% "root.object.array[12].item.field"
%% @end
diff --git a/src/jesse_schema_validator.erl b/src/jesse_schema_validator.erl
index 19e636a..5292494 100644
--- a/src/jesse_schema_validator.erl
+++ b/src/jesse_schema_validator.erl
@@ -77,13 +77,13 @@
-define(OBJECT, <<"object">>).
-define(STRING, <<"string">>).
-%% @doc General error definition tuple
+%% General error definition tuple
-type error() ::
{ 'schema_invalid', Schema :: jesse:json_term(), reason() } |
{ 'data_invalid', Schema :: jesse:json_term(), reason(),
Data :: jesse:json_term() }.
-%% @doc Uniform type of the error reasons
+%% Uniform type of the error reasons
-type reason() :: { 'missing_id_field', Field :: binary() }
| { 'missing_required_property', Name :: binary() }
| { 'missing_dependency', Name :: binary() }