mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
[hack/en] Fixed some typos
This commit is contained in:
parent
f23d470961
commit
ff1b91d463
@ -2,6 +2,7 @@
|
|||||||
language: Hack
|
language: Hack
|
||||||
contributors:
|
contributors:
|
||||||
- ["Stephen Holdaway", "https://github.com/stecman"]
|
- ["Stephen Holdaway", "https://github.com/stecman"]
|
||||||
|
- ["David Lima", "https://github.com/davelima"]
|
||||||
filename: learnhack.hh
|
filename: learnhack.hh
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -152,7 +153,7 @@ class ArgumentPromotion
|
|||||||
private bool $isAwesome) {}
|
private bool $isAwesome) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class WithoutArugmentPromotion
|
class WithoutArgumentPromotion
|
||||||
{
|
{
|
||||||
public string $name;
|
public string $name;
|
||||||
|
|
||||||
@ -169,9 +170,9 @@ class WithoutArugmentPromotion
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Co-oprerative multi-tasking
|
// Co-operative multi-tasking
|
||||||
//
|
//
|
||||||
// Two new keywords "async" and "await" can be used to perform mutli-tasking
|
// Two new keywords "async" and "await" can be used to perform multi-tasking
|
||||||
// Note that this does not involve threads - it just allows transfer of control
|
// Note that this does not involve threads - it just allows transfer of control
|
||||||
async function cooperativePrint(int $start, int $end) : Awaitable<void>
|
async function cooperativePrint(int $start, int $end) : Awaitable<void>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user