@@ -16,7 +16,7 @@ import { Token } from './token';
16
16
export class Fn {
17
17
/**
18
18
* The ``Ref`` intrinsic function returns the value of the specified parameter or resource.
19
- * Note that it doesn't validate the logicalName, it mainly serves paremeter /resource reference defined in a ``CfnInclude`` template.
19
+ * Note that it doesn't validate the logicalName, it mainly serves parameter /resource reference defined in a ``CfnInclude`` template.
20
20
* @param logicalName The logical name of a parameter/resource for which you want to retrieve its value.
21
21
*/
22
22
public static ref ( logicalName : string ) : string {
@@ -99,7 +99,7 @@ export class Fn {
99
99
* @returns a token represented as a string array
100
100
*/
101
101
public static split ( delimiter : string , source : string , assumedLength ?: number ) : string [ ] {
102
- // short-circut if source is not a token
102
+ // short-circuit if source is not a token
103
103
if ( ! Token . isUnresolved ( source ) ) {
104
104
return source . split ( delimiter ) ;
105
105
}
@@ -420,7 +420,7 @@ export class Fn {
420
420
* @param object The object or array to stringify
421
421
*/
422
422
public static toJsonString ( object : any ) : string {
423
- // short-circut if object is not a token
423
+ // short-circuit if object is not a token
424
424
if ( ! Token . isUnresolved ( object ) ) {
425
425
return JSON . stringify ( object ) ;
426
426
}
@@ -434,7 +434,7 @@ export class Fn {
434
434
* @param array The array you want to return the number of elements from
435
435
*/
436
436
public static len ( array : any ) : number {
437
- // short-circut if array is not a token
437
+ // short-circuit if array is not a token
438
438
if ( ! Token . isUnresolved ( array ) ) {
439
439
if ( ! Array . isArray ( array ) ) {
440
440
throw new Error ( 'Fn.length() needs an array' ) ;
@@ -630,7 +630,7 @@ class FnCidr extends FnBase {
630
630
*/
631
631
constructor ( ipBlock : any , count : any , sizeMask ?: any ) {
632
632
if ( count < 1 || count > 256 ) {
633
- throw new Error ( `Fn::Cidr's count attribute must be betwen 1 and 256, ${ count } was provided.` ) ;
633
+ throw new Error ( `Fn::Cidr's count attribute must be between 1 and 256, ${ count } was provided.` ) ;
634
634
}
635
635
super ( 'Fn::Cidr' , [ ipBlock , count , sizeMask ] ) ;
636
636
}
@@ -851,7 +851,7 @@ class FnJoin implements IResolvable {
851
851
}
852
852
853
853
/**
854
- * Optimization: if an Fn::Join is nested in another one and they share the same delimiter, then flatten it up. Also,
854
+ * Optimization: if a Fn::Join is nested in another one and they share the same delimiter, then flatten it up. Also,
855
855
* if two concatenated elements are literal strings (not tokens), then pre-concatenate them with the delimiter, to
856
856
* generate shorter output.
857
857
*/
0 commit comments