Skip to content

Commit

Permalink
fix typespec naming
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Jan 11, 2025
1 parent 82cd10e commit 9572b89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wrapture/type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def self.normalize_spec_hash(spec)
# normalize the include list.
def self.normalize_spec_hash!(spec)
spec['includes'] = Wrapture.normalize_array(spec['includes'])
spec['name'] = Wrapture.normalize_name(spec, 'name')
spec
end

Expand All @@ -48,7 +49,7 @@ def self.normalize_spec_hash!(spec)
# a parameter list and return type for the signature to be clear.
def initialize(spec = 'void')
actual_spec = if spec.is_a?(String)
{ 'name' => [spec] }
{ 'name' => spec }
else
spec
end
Expand Down

0 comments on commit 9572b89

Please sign in to comment.