Skip to content

Commit

Permalink
Fix a bunch of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
HairyFotr committed Aug 23, 2017
1 parent 9c5a67c commit 985d23a
Show file tree
Hide file tree
Showing 47 changed files with 95 additions and 95 deletions.
4 changes: 2 additions & 2 deletions CHICKEN.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ sqr ;; => #<procedure (sqr x)>
(= 2 1) ;; => #f
;; 'eq?' returns #t if two arguments refer to the same object in memory
;; In other words, it's a simple pointer comparision.
;; In other words, it's a simple pointer comparison.
(eq? '() '()) ;; => #t ;; there's only one empty list in memory
(eq? (list 3) (list 3)) ;; => #f ;; not the same object
(eq? 'yes 'yes) ;; => #t
(eq? 3 3) ;; => #t ;; don't do this even if it works in this case
(eq? 3 3.0) ;; => #f ;; it's better to use '=' for number comparisions
(eq? 3 3.0) ;; => #f ;; it's better to use '=' for number comparisons
(eq? "Hello" "Hello") ;; => #f
;; 'eqv?' is same as 'eq?' all datatypes except numbers and characters
Expand Down
2 changes: 1 addition & 1 deletion awk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function io_functions( localvar) {
# automatically for you.
# You can probably guess there are other $ variables. Every line is
# implicitely split before every action is called, much like the shell
# implicitly split before every action is called, much like the shell
# does. And, like the shell, each field can be access with a dollar sign
# This will print the second and fourth fields in the line
Expand Down
4 changes: 2 additions & 2 deletions c.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ int main (int argc, char** argv)
goto error;
}
error :
printf("Error occured at i = %d & j = %d.\n", i, j);
printf("Error occurred at i = %d & j = %d.\n", i, j);
/*
https://ideone.com/GuPhd6
this will print out "Error occured at i = 52 & j = 99."
this will print out "Error occurred at i = 52 & j = 99."
*/

///////////////////////////////////////
Expand Down
6 changes: 3 additions & 3 deletions chapel.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ do {
} while (j <= 10000);
writeln(jSum);

// for loops are much like those in python in that they iterate over a
// for loops are much like those in Python in that they iterate over a
// range. Ranges (like the 1..10 expression below) are a first-class object
// in Chapel, and as such can be stored in variables.
for i in 1..10 do write(i, ", ");
Expand Down Expand Up @@ -1064,14 +1064,14 @@ proc main() {
}
}

// Heres an example using atomics and a sync variable to create a
// Here's an example using atomics and a sync variable to create a
// count-down mutex (also known as a multiplexer).
var count: atomic int; // our counter
var lock$: sync bool; // the mutex lock

count.write(2); // Only let two tasks in at a time.
lock$.writeXF(true); // Set lock$ to full (unlocked)
// Note: The value doesnt actually matter, just the state
// Note: The value doesn't actually matter, just the state
// (full:unlocked / empty:locked)
// Also, writeXF() fills (F) the sync var regardless of its state (X)

Expand Down
4 changes: 2 additions & 2 deletions cmake.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ are used in the usual way.
# - cmake ..
# - make
#
# With those steps, we will follow the best pratice to compile into a subdir
# and the second line will request to CMake to generate a new OS-dependant
# With those steps, we will follow the best practice to compile into a subdir
# and the second line will request to CMake to generate a new OS-dependent
# Makefile. Finally, run the native Make command.

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion crystal.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Range.new(1, 10).class #=> Range(Int32, Int32)
# possibly different types.
{1, "hello", 'x'}.class #=> Tuple(Int32, String, Char)
# Acces tuple's value by its index
# Access tuple's value by its index
tuple = {:key1, :key2}
tuple[1] #=> :key2
tuple[2] #=> syntax error : Index out of bound
Expand Down
6 changes: 3 additions & 3 deletions cypher.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Nodes
It's an empty *node*, to indicate that there is a *node*, but it's not relevant for the query.

```(n)```
It's a *node* refered by the variable **n**, reusable in the query. It begins with lowercase and uses camelCase.
It's a *node* referred by the variable **n**, reusable in the query. It begins with lowercase and uses camelCase.

```(p:Person)```
You can add a *label* to your node, here **Person**. It's like a type / a class / a category. It begins with uppercase and uses camelCase.
Expand Down Expand Up @@ -53,7 +53,7 @@ Relationships (or Edges)
It's a *relationship* with the *label* **KNOWS**. It's a *label* as the node's label. It begins with uppercase and use UPPER_SNAKE_CASE.

```[k:KNOWS]```
The same *relationship*, refered by the variable **k**, reusable in the query, but it's not necessary.
The same *relationship*, referred by the variable **k**, reusable in the query, but it's not necessary.

```[k:KNOWS {since:2017}]```
The same *relationship*, with *properties* (like *node*), here **since**.
Expand Down Expand Up @@ -244,6 +244,6 @@ Special hints
---

- There is just single-line comments in Cypher, with double-slash : // Comments
- You can execute a Cypher script stored in a **.cql** file directly in Neo4j (it's an import). However, you can't have multiple statements in this file (separed by **;**).
- You can execute a Cypher script stored in a **.cql** file directly in Neo4j (it's an import). However, you can't have multiple statements in this file (separated by **;**).
- Use the Neo4j shell to write Cypher, it's really awesome.
- The Cypher will be the standard query language for all graph databases (known as **OpenCypher**).
4 changes: 2 additions & 2 deletions edn.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ false
"hungarian breakfast"
"farmer's cheesy omelette"

; Characters are preceeded by backslashes
; Characters are preceded by backslashes
\g \r \a \c \e

; Keywords start with a colon. They behave like enums. Kind of
Expand All @@ -42,7 +42,7 @@ false
:olives

; Symbols are used to represent identifiers. They start with #.
; You can namespace symbols by using /. Whatever preceeds / is
; You can namespace symbols by using /. Whatever precedes / is
; the namespace of the name.
#spoon
#kitchen/spoon ; not the same as #spoon
Expand Down
2 changes: 1 addition & 1 deletion elm.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ leftmostElement tree =
-- Put this at the top of the file. If omitted, you're in Main.
module Name where

-- By default, everything is exported. You can specify exports explicity.
-- By default, everything is exported. You can specify exports explicitly.
module Name (MyType, myValue) where

-- One common pattern is to export a union type but not its tags. This is known
Expand Down
2 changes: 1 addition & 1 deletion fa-ir/java-fa.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class LearnJava {
///////////////////////////////////////

/*
* Ouput
* Output
*/

// Use System.out.println() to print lines.
Expand Down
4 changes: 2 additions & 2 deletions fortran95.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ filename: learnfortran.f95
---

Fortran is one of the oldest computer languages. It was developed in the 1950s
by IBM for numeric calculations (Fortran is an abreviation of "Formula
by IBM for numeric calculations (Fortran is an abbreviation of "Formula
Translation"). Despite its age, it is still used for high-performance computing
such as weather prediction. However, the language has changed considerably over
the years, although mostly maintaining backwards compatibility; well known
Expand Down Expand Up @@ -242,7 +242,7 @@ program example !declare a program called example.
close(12)
! There are more features available than discussed here and alternative
! variants due to backwards compatability with older Fortran versions.
! variants due to backwards compatibility with older Fortran versions.
! Built-in Functions
Expand Down
2 changes: 1 addition & 1 deletion fr-fr/scala.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ i // Montre la valeur de i. Notez que while est une boucle au sens classique.
i = 0
// La boucle do while
do {
println("x is still less then 10");
println("x is still less than 10");
i += 1
} while (i < 10)

Expand Down
4 changes: 2 additions & 2 deletions git.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Stashing takes the dirty state of your working directory and saves it on a
stack of unfinished changes that you can reapply at any time.

Let's say you've been doing some work in your git repo, but you want to pull
from the remote. Since you have dirty (uncommited) changes to some files, you
from the remote. Since you have dirty (uncommitted) changes to some files, you
are not able to run `git pull`. Instead, you can run `git stash` to save your
changes onto a stack!

Expand Down Expand Up @@ -521,7 +521,7 @@ $ git reset --hard
$ git reset 31f2bb1

# Moves the current branch tip backward to the specified commit
# and makes the working dir match (deletes uncommited changes and all commits
# and makes the working dir match (deletes uncommitted changes and all commits
# after the specified commit).
$ git reset --hard 31f2bb1
```
Expand Down
4 changes: 2 additions & 2 deletions hack.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class InvalidFooSubclass extends ConsistentFoo
// ...
}

// Using the __Override annotation on a non-overriden method will cause a
// Using the __Override annotation on a non-overridden method will cause a
// type checker error:
//
// "InvalidFooSubclass::otherMethod() is marked as override; no non-private
Expand Down Expand Up @@ -299,7 +299,7 @@ $cat instanceof KittenInterface === true; // True
## More Information

Visit the [Hack language reference](http://docs.hhvm.com/manual/en/hacklangref.php)
for detailed explainations of the features Hack adds to PHP, or the [official Hack website](http://hacklang.org/)
for detailed explanations of the features Hack adds to PHP, or the [official Hack website](http://hacklang.org/)
for more general information.

Visit the [official HHVM website](http://hhvm.com/) for HHVM installation instructions.
Expand Down
2 changes: 1 addition & 1 deletion haml.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $ haml input_file.haml output_file.html
To write a multi line comment, indent your commented code to be
wrapped by the forward slash
-# This is a silent comment, which means it wont be rendered into the doc at all
-# This is a silent comment, which means it won't be rendered into the doc at all
/ -------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion haxe.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class LearnHaxe3{
The untyped keyword operates on entire *blocks* of code, skipping
any type checks that might be otherwise required. This keyword should
be used very sparingly, such as in limited conditionally-compiled
situations where type checking is a hinderance.
situations where type checking is a hindrance.
In general, skipping type checks is *not* recommended. Use the
enum, inheritance, or structural type models in order to help ensure
Expand Down
2 changes: 1 addition & 1 deletion hy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ True ; => True
(apply something-fancy ["My horse" "amazing"] { "mane" "spectacular" })

; anonymous functions are created using `fn' or `lambda' constructs
; which are similiar to `defn'
; which are similar to `defn'
(map (fn [x] (* x x)) [1 2 3 4]) ;=> [1 4 9 16]

;; Sequence operations
Expand Down
2 changes: 1 addition & 1 deletion ja-jp/php-jp.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ echo 'Multiple', 'Parameters', 'Valid';
define("FOO", "something");

// 定義した名前をそのまま($はつけずに)使用することで、定数にアクセスできます
// access to a constant is possible by direct using the choosen name
// access to a constant is possible by direct using the chosen name
echo 'This outputs '.FOO;


Expand Down
2 changes: 1 addition & 1 deletion java.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class LearnJava {
///////////////////////////////////////

/*
* Ouput
* Output
*/

// Use System.out.println() to print lines.
Expand Down
20 changes: 10 additions & 10 deletions kdb+.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contributors:
filename: learnkdb.q
---

The q langauge and its database component kdb+ were developed by Arthur Whitney
The q language and its database component kdb+ were developed by Arthur Whitney
and released by Kx systems in 2003. q is a descendant of APL and as such is
very terse and a little strange looking for anyone from a "C heritage" language
background. Its expressiveness and vector oriented nature make it well suited
Expand Down Expand Up @@ -301,7 +301,7 @@ l:1+til 9 / til is a useful shortcut for generating ranges
-5#l / => 5 6 7 8 9
/ drop the last 5
-5_l / => 1 2 3 4
/ find the first occurance of 4
/ find the first occurrence of 4
l?4 / => 3
l[3] / => 4
Expand All @@ -316,7 +316,7 @@ key d / => `a`b`c
/ and value the second
value d / => 1 2 3
/ Indexing is indentical to lists
/ Indexing is identical to lists
/ with the first list as a key instead of the position
d[`a] / => 1
d[`b] / => 2
Expand Down Expand Up @@ -406,7 +406,7 @@ k!t
/ We can also use this shortcut for defining keyed tables
kt:([id:1 2 3]c1:1 2 3;c2:4 5 6;c3:7 8 9)
/ Records can then be retreived based on this key
/ Records can then be retrieved based on this key
kt[1]
/ => c1| 1
/ => c2| 4
Expand All @@ -428,7 +428,7 @@ kt[`id!1]
f:{x+x}
f[2] / => 4
/ Functions can be annonymous and called at point of definition
/ Functions can be anonymous and called at point of definition
{x+x}[2] / => 4
/ By default the last expression is returned
Expand All @@ -440,7 +440,7 @@ f[2] / => 4
/ Function arguments can be specified explicitly (separated by ;)
{[arg1;arg2] arg1+arg2}[1;2] / => 3
/ or if ommited will default to x, y and z
/ or if omitted will default to x, y and z
{x+y+z}[1;2;3] / => 6
/ Built in functions are no different, and can be called the same way (with [])
Expand Down Expand Up @@ -472,7 +472,7 @@ a / => 1
/ Functions cannot see nested scopes (only local and global)
{local:1;{:local}[]}[] / throws error as local is not defined in inner function
/ A function can have one or more of it's arguments fixed (projection)
/ A function can have one or more of its arguments fixed (projection)
f:+[4]
f[4] / => 8
f[5] / => 9
Expand All @@ -483,7 +483,7 @@ f[6] / => 10
////////// q-sql //////////
////////////////////////////////////
/ q has it's own syntax for manipulating tables, similar to standard SQL
/ q has its own syntax for manipulating tables, similar to standard SQL
/ This contains the usual suspects of select, insert, update etc.
/ and some new functionality not typically available
/ q-sql has two significant differences (other than syntax) to normal SQL:
Expand Down Expand Up @@ -682,7 +682,7 @@ aj[`time`sym;trades;quotes]
/ where possible functionality should be vectorized (i.e. operations on lists)
/ adverbs supplement this, modifying the behaviour of functions
/ and providing loop type functionality when required
/ (in q functions are sometimes refered to as verbs, hence adverbs)
/ (in q functions are sometimes referred to as verbs, hence adverbs)
/ the "each" adverb modifies a function to treat a list as individual variables
first each (1 2 3;4 5 6;7 8 9)
/ => 1 4 7
Expand Down Expand Up @@ -762,7 +762,7 @@ select from splayed / (the columns are read from disk on request)
/ kdb+ is typically used for data capture and analysis.
/ This involves using an architecture with multiple processes
/ working together. kdb+ frameworks are available to streamline the setup
/ and configuration of this architecuture and add additional functionality
/ and configuration of this architecture and add additional functionality
/ such as disaster recovery, logging, access, load balancing etc.
/ https://github.com/AquaQAnalytics/TorQ
```
Expand Down
2 changes: 1 addition & 1 deletion matlab.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ double_input(6) % ans = 12
% anonymous function. Useful when quickly defining a function to pass to
% another function (eg. plot with fplot, evaluate an indefinite integral
% with quad, find roots with fzero, or find minimum with fminsearch).
% Example that returns the square of it's input, assigned to the handle sqr:
% Example that returns the square of its input, assigned to the handle sqr:
sqr = @(x) x.^2;
sqr(10) % ans = 100
doc function_handle % find out more
Expand Down
4 changes: 2 additions & 2 deletions nim.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ let myDrink = drinks[2]
# static typing powerful and useful.

type
Name = string # A type alias gives you a new type that is interchangable
Name = string # A type alias gives you a new type that is interchangeable
Age = int # with the old type but is more descriptive.
Person = tuple[name: Name, age: Age] # Define data structures too.
AnotherSyntax = tuple
Expand Down Expand Up @@ -109,7 +109,7 @@ when compileBadCode:

type
Color = enum cRed, cBlue, cGreen
Direction = enum # Alternative formating
Direction = enum # Alternative formatting
dNorth
dWest
dEast
Expand Down
2 changes: 1 addition & 1 deletion objective-c.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ MyClass *newVar = [classVar retain]; // If classVar is released, object is still
// Automatic Reference Counting (ARC)
// Because memory management can be a pain, Xcode 4.2 and iOS 4 introduced Automatic Reference Counting (ARC).
// ARC is a compiler feature that inserts retain, release, and autorelease automatically for you, so when using ARC,
// you must not use retain, relase, or autorelease
// you must not use retain, release, or autorelease
MyClass *arcMyClass = [[MyClass alloc] init];
// ... code using arcMyClass
// Without ARC, you will need to call: [arcMyClass release] after you're done using arcMyClass. But with ARC,
Expand Down
Loading

0 comments on commit 985d23a

Please sign in to comment.