Skip to content

Commit

Permalink
Apply comment formmating suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff authored and Brian J. Cardiff committed Mar 13, 2017
1 parent 168621a commit e5a9945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xml/node.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ struct XML::Node
attributes[attribute]?.try &.content
end

# sets *attribute* of this node to *value*. Raises `XML::Error` if this node does not support attributes.
# Sets *attribute* of this node to *value*.
# Raises `XML::Error` if this node does not support attributes.
def []=(name : String, value : String)
raise XML::Error.new("Can't set attribute of #{type}", 0) unless element?
attributes[name] = value
Expand Down

0 comments on commit e5a9945

Please sign in to comment.