Correct doc example

This commit is contained in:
Vitalii Elenhaupt 2019-04-29 16:27:12 +03:00
parent ca5e894e0b
commit 2ddf26b8c3
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706

View file

@ -16,8 +16,8 @@ module Ameba
# Creates Severity by the name.
#
# ```
# Severity.parse('refactoring') # => Severity::Refactoring
# Severity.parse('foo-bar') # => Exception: Incorrect severity name
# Severity.parse("refactoring") # => Severity::Refactoring
# Severity.parse("foo-bar") # => Exception: Incorrect severity name
# ```
#
def self.parse(name : String)