Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
- bussiness -> business
- Fix mismatching variable names in file handle example. `handle =>
  handle` is confusing but the destructuring syntax seems to enforce it.
  See austral#50
  • Loading branch information
DeltaF1 committed Apr 22, 2023
1 parent 55f9f5a commit 8cb6b18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _spec/austral-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Declaration:

```austral
generic [T: Type]
function resizeArray(array: Pointer[T], size: Index): Pointer[T];
function resizeArray(array: Pointer[T], size: Index): Option[Pointer[T]];
```

Description:
Expand Down
2 changes: 1 addition & 1 deletion _spec/rationale-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ let secrets: String := readFile(&p);

In the context of code running on a programmer's development computer, that
means personal information. In the context of code running on an application
server, that means confidential bussiness information.
server, that means confidential business information.

What does a capability-secure filesystem API look like? Like this:

Expand Down
4 changes: 2 additions & 2 deletions _spec/rationale-linear-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ The `openFile` function looks like this:
extern int fopen(char* filename, char* mode)
File openFile(String path) {
let handle: int = fopen(as_c_string(filename), "r");
let ptr: int = fopen(as_c_string(filename), "r");
return File(handle => ptr);
}
```
Expand All @@ -710,7 +710,7 @@ extern int fputs(char* string, int fp)
File writeString(File file, String content) {
let { handle: int } := file;
fputs(as_c_string(content), handle);
return File(handle => ptr);
return File(handle => handle);
}
```

Expand Down

0 comments on commit 8cb6b18

Please sign in to comment.