lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.13.3 vs lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.14.3
- old
+ new
@@ -237,10 +237,10 @@
def map_type?(descriptor)
# Defensively make sure that we are dealing with a repeated field
return false unless descriptor.label == :repeated
# Try to create a new instance with the field that maps to the descriptor name
- # being assinged a hash value. If this goes through, then it's a map type.
+ # being assigned a hash value. If this goes through, then it's a map type.
constant.new(**{ descriptor.name => {} })
true
rescue ArgumentError
# This means the descriptor is not a map type
false