Browse Source

spelling correction

ibireme 9 years ago
parent
commit
f5d7c77a3a
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Demo/YYTextDemo/NSString+YYAdd.h
  2. 2 2
      YYText/Component/YYTextLayout.m

+ 1 - 1
Demo/YYTextDemo/NSString+YYAdd.h

@@ -73,7 +73,7 @@
  
  @param regex  The regular expression
  @param options     The matching options to report.
- @return YES if can match the regex; otherwize, NO.
+ @return YES if can match the regex; otherwise, NO.
  */
 - (BOOL)matchesRegex:(NSString *)regex options:(NSRegularExpressionOptions)options;
 

+ 2 - 2
YYText/Component/YYTextLayout.m

@@ -876,7 +876,7 @@ fail:
  Get the row index with 'edge' distance.
  
  @param edge  The distance from edge to the point.
- If vertical form, the edge is left edge, otherwize the edge is top edge.
+ If vertical form, the edge is left edge, otherwise the edge is top edge.
  
  @return Returns NSNotFound if there's no row at the point.
  */
@@ -908,7 +908,7 @@ fail:
  Get the closest row index with 'edge' distance.
  
  @param edge  The distance from edge to the point.
- If vertical form, the edge is left edge, otherwize the edge is top edge.
+ If vertical form, the edge is left edge, otherwise the edge is top edge.
  
  @return Returns NSNotFound if there's no line.
  */