Skip to content

Commit

Permalink
Typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaliszko committed Aug 28, 2015
1 parent 695c6cf commit b43fbd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ExpressiveAnnotations.Analysis;

Expand Down Expand Up @@ -273,7 +272,7 @@ private void ExtractValuesForMessage(ValidationContext validationContext)
throw new FormatException("Input string was not in a correct format.");

var length = leftBraces.Length;
// flatten each pair of braces (curly brackets) into single artifact
// flatten each pair of braces (curly brackets) into single brace
// in order to escape them - to output a { use {{ and to output a } use }} (just like standard string.Format does)
var left = new string('{', length/2);
var right = new string('}', length/2);
Expand Down
2 changes: 1 addition & 1 deletion src/expressive.annotations.validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ var
throw 'Input string was not in a correct format.';

length = leftBraces.length;
// flatten each pair of braces (curly brackets) into single artifact, in order to escape them
// flatten each pair of braces (curly brackets) into single brace
left = new Array(parseInt(length / 2) + 1).join('{');
right = new Array(parseInt(length / 2) + 1).join('}');

Expand Down

0 comments on commit b43fbd2

Please sign in to comment.