Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small typos #80

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/examples/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ of `intf.send` and it can update the monitor state. In addition, the
monitor inserts an assertion before every call to `intf.recv`. This
assertion is introduced with the `require` statement. This means that
the calling environment of `inft.recv` must guarantee that the
condition `sent(x)` holds before the call to `intf.send`. That is, the
condition `sent(x)` holds before the call to `intf.recv`. That is, the
received packet `x` must previously have been sent.

In effect, our service specification describes a channel that can
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/values.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Here is an example of a simple program that tabulates the function
instance arr : array(t,t)

action tabulate(max : t) returns (res:arr.t) {
local i:index {
local i:t {
i := 0;
res := arr.create(max,0);
while i < max {
Expand Down
2 changes: 1 addition & 1 deletion doc/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Every Ivy file begins with a line like the following:
This tells Ivy what version of the language we are using. This is
important because in successive version of the language, certain
features may be changed or deprecated. Providing the language version
allows old programs to keep working. They current version of the Ivy
allows old programs to keep working. The current version of the Ivy
language is 1.7. Changes between versions of the language are listed
at the end of this document.

Expand Down
4 changes: 2 additions & 2 deletions ivy/include/1.8/collections.ivy
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ module array(domain,range) = {
after create {
assert end(a) = s & value(a,X) = y
}
before set {
before set {
assert 0 <= x & x < end(a)
}
after set {
assert end(a) = end(old a);
assert end(a) = end(old a);
assert value(a,X) = y if X = x else value(old a,X)
}
before get {
Expand Down