From 0ff89e96b5fec5c555df657f08dd987a8d6e6918 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace Date: Wed, 24 Apr 2024 14:01:30 +0200 Subject: [PATCH] Fix typos in docstring for `Restriction` --- src/types.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.jl b/src/types.jl index 79bc494..c9cc227 100644 --- a/src/types.jl +++ b/src/types.jl @@ -88,7 +88,7 @@ end OpenStreetMap turn restriction (relation). # Fields -`T<:String` +`T<:Union{Integer, String}` - `id::T`: OpenStreetMap relation id. - `type::String`: Either a `via_way` or `via_node` turn restriction. - `tags::AbstractDict{String,Any}`: Metadata tags. @@ -97,7 +97,7 @@ OpenStreetMap turn restriction (relation). - `via_node::Union{T,Nothing}`: Node id at the centre of the turn restriction. - `via_way::Union{Vector{T},Nothing}`: Way id at the centre of the turn restriction. - `is_exclusion::Bool`: Turn restrictions such as `no_left_turn`, `no_right_turn` or `no_u_turn`. -- `is_exclusive::Bool`: Turn restrictions such as `striaght_on_only`, `left_turn_only`, `right_turn_only`. +- `is_exclusive::Bool`: Turn restrictions such as `straight_on_only`, `left_turn_only`, `right_turn_only`. """ @with_kw struct Restriction{T <: Union{Integer, String}} id::T