Skip to content

Commit

Permalink
Merge pull request #6 from vipulnsward/typo_1
Browse files Browse the repository at this point in the history
fix some typos
  • Loading branch information
rkh committed May 12, 2013
2 parents 5ed86c2 + b52f465 commit 8021af0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/mustermann/ast/expander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ def error_for(values)
# @see Mustermann::AST::Translator#expand
# @!visibility private
def escape(string, *args)
# URI::Parser is pretty slow, let's not had every string to it, even if it's uneccessary
# URI::Parser is pretty slow, let's not had every string to it, even if it's unnecessary
string =~ /\A\w*\Z/ ? string : super
end

# Turns a sprintf pattern into our secret internal data strucutre.
# Turns a sprintf pattern into our secret internal data structure.
# @!visibility private
def pattern(string = "", *keys, **filters)
[[keys, string, filters]]
end

# Creates the product of two of our secret internal data strucutres.
# Creates the product of two of our secret internal data structures.
# @!visibility private
def add_to(list, result)
list << [[], ""] if list.empty?
Expand Down
4 changes: 2 additions & 2 deletions lib/mustermann/ast/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def node(type, *args, &block)
block ? type.parse(*args, &block) : type.new(*args)
end

# Create a node for a character we don't have an explicite rule for.
# Create a node for a character we don't have an explicit rule for.
#
# @param [String] char the character
# @return [Mustermann::AST::Node] the node
Expand Down Expand Up @@ -122,7 +122,7 @@ def expect(regexp, **options)
# Helper for raising an exception for an unexpected character.
# Will read character from buffer if buffer is passed in.
#
# @param [String, nil] char the unexcpected character
# @param [String, nil] char the unexpected character
# @raise [Mustermann::ParseError, Exception]
# @!visibility private
def unexpected(char = getch, exception: ParseError)
Expand Down
2 changes: 1 addition & 1 deletion lib/mustermann/ast/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Mustermann
module AST
# Checks the AST for certain validations, like correct capture names.
#
# Internally a poor man's visitor (abusing translator to not have to impelment a visitor).
# Internally a poor man's visitor (abusing translator to not have to implement a visitor).
# @!visibility private
class Validation < Translator
# Runs validations.
Expand Down

0 comments on commit 8021af0

Please sign in to comment.