Skip to content

Commit c22b335

Browse files
author
yongpengliang
committed
Merge branch 'master' of https://github.com/YPLiang19/Mango
2 parents 765fef5 + 888a2b0 commit c22b335

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iO
44

55
## Example
66
```objc
7-
import "AppDelegate.h"
8-
#import "mango.h"
7+
#import "AppDelegate.h"
8+
#import <MangoFix/mango.h>
99

1010
@implementation AppDelegate
1111

1212
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
1313
NSString *path = [[NSBundle mainBundle] pathForResource:@"demo" ofType:@"mg"];
14-
NSURL *scriptUrl = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@",path]];
14+
NSURL *scriptUrl = [NSURL fileURLWithPath:path];
1515
MMANontext *context = [[MMANontext alloc] init];
1616
   [context evalMangoScriptWithURL:scriptUrl];
1717
return YES;

0 commit comments

Comments
 (0)