Skip to content

Commit

Permalink
docs(Filesystem): use await in writeFile example (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvx89 authored and jcesarmobile committed Oct 25, 2019
1 parent ed5eca5 commit e374f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs-md/apis/filesystem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import { Plugins, FilesystemDirectory, FilesystemEncoding } from '@capacitor/cor

const { Filesystem } = Plugins;

fileWrite() {
async fileWrite() {
try {
Filesystem.writeFile({
await Filesystem.writeFile({
path: 'secrets/text.txt',
data: "This is a test",
directory: FilesystemDirectory.Documents,
Expand Down

0 comments on commit e374f2e

Please sign in to comment.