We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 765fef5 + 888a2b0 commit c22b335Copy full SHA for c22b335
1 file changed
README.md
@@ -4,14 +4,14 @@ Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iO
4
5
## Example
6
```objc
7
-import "AppDelegate.h"
8
-#import "mango.h"
+#import "AppDelegate.h"
+#import <MangoFix/mango.h>
9
10
@implementation AppDelegate
11
12
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
13
NSString *path = [[NSBundle mainBundle] pathForResource:@"demo" ofType:@"mg"];
14
- NSURL *scriptUrl = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@",path]];
+ NSURL *scriptUrl = [NSURL fileURLWithPath:path];
15
MMANontext *context = [[MMANontext alloc] init];
16
[context evalMangoScriptWithURL:scriptUrl];
17
return YES;
0 commit comments