1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix typo in AAssetManager

This commit is contained in:
Delyan Angelov 2020-12-17 09:08:17 +02:00
parent 05e101bd95
commit 8addb31440
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -23,7 +23,7 @@ pub fn read_apk_asset(file string) ?[]byte {
if isnil(act) {
return error('Could not get reference to Android activity')
}
asset := C.AAssetManager_open(&C.AAsetManager(act.assetManager), file.str, C.AASSET_MODE_STREAMING)
asset := C.AAssetManager_open(&C.AAssetManager(act.assetManager), file.str, C.AASSET_MODE_STREAMING)
if isnil(asset) {
return error('File `$file` not found')
}