Skip to content

Commit

Permalink
Merge pull request #4080 from lydell/single-newline-at-eof
Browse files Browse the repository at this point in the history
Ensure that all source files end with a single `\n`
  • Loading branch information
michaelficarra committed Sep 4, 2015
2 parents eb6baf2 + 6c6c8d4 commit 8711da0
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CNAME
@@ -1 +1 @@
coffeescript.org
coffeescript.org
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -6,4 +6,4 @@

* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffeescript/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).

* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
2 changes: 0 additions & 2 deletions documentation/coffee/block_comment.coffee
Expand Up @@ -2,5 +2,3 @@
SkinnyMochaHalfCaffScript Compiler v1.0
Released under the MIT License
###


2 changes: 1 addition & 1 deletion documentation/coffee/cake_tasks.coffee
Expand Up @@ -6,4 +6,4 @@ task 'build:parser', 'rebuild the Jison parser', (options) ->
require 'jison'
code = require('./lib/grammar').parser.generate()
dir = options.output or 'lib'
fs.writeFile "#{dir}/parser.js", code
fs.writeFile "#{dir}/parser.js", code
2 changes: 1 addition & 1 deletion documentation/coffee/do.coffee
@@ -1,4 +1,4 @@
for filename in list
do (filename) ->
fs.readFile filename, (err, contents) ->
compile filename, contents.toString()
compile filename, contents.toString()
2 changes: 1 addition & 1 deletion documentation/coffee/expressions.coffee
Expand Up @@ -6,4 +6,4 @@ grade = (student) ->
else
"C"

eldest = if 24 > 21 then "Liz" else "Ike"
eldest = if 24 > 21 then "Liz" else "Ike"
2 changes: 1 addition & 1 deletion documentation/coffee/expressions_comprehension.coffee
@@ -1,3 +1,3 @@
# The first ten global properties.

globals = (name for name of window)[0...10]
globals = (name for name of window)[0...10]
2 changes: 1 addition & 1 deletion documentation/coffee/fat_arrow.coffee
Expand Up @@ -3,4 +3,4 @@ Account = (customer, cart) ->
@cart = cart

$('.shopping_cart').on 'click', (event) =>
@customer.purchase @cart
@customer.purchase @cart
2 changes: 1 addition & 1 deletion documentation/coffee/generators.coffee
Expand Up @@ -5,4 +5,4 @@ perfectSquares = ->
yield num * num
return

window.ps or= perfectSquares()
window.ps or= perfectSquares()
2 changes: 1 addition & 1 deletion documentation/coffee/scope.coffee
Expand Up @@ -2,4 +2,4 @@ outer = 1
changeNumbers = ->
inner = -1
outer = 10
inner = changeNumbers()
inner = changeNumbers()
2 changes: 1 addition & 1 deletion documentation/coffee/switch.coffee
Expand Up @@ -7,4 +7,4 @@ switch day
go bingo
go dancing
when "Sun" then go church
else go work
else go work
2 changes: 1 addition & 1 deletion examples/beautiful_code/binary_search.coffee
Expand Up @@ -13,4 +13,4 @@ index = (list, target) ->

console.log 2 is index [10, 20, 30, 40, 50], 30
console.log 4 is index [-97, 35, 67, 88, 1200], 1200
console.log 0 is index [0, 45, 70], 0
console.log 0 is index [0, 45, 70], 0
2 changes: 1 addition & 1 deletion examples/beautiful_code/regular_expression_matcher.coffee
Expand Up @@ -31,4 +31,4 @@ console.log match("s..t", "spit")
console.log match("^..t", "buttercup")
console.log match("i..$", "cherries")
console.log match("o*m", "vrooooommm!")
console.log match("^hel*o$", "hellllllo")
console.log match("^hel*o$", "hellllllo")
2 changes: 1 addition & 1 deletion examples/code.coffee
Expand Up @@ -164,4 +164,4 @@ infinity = Infinity
nan = NaN

# Deleting.
delete secret.identity
delete secret.identity
2 changes: 1 addition & 1 deletion examples/computer_science/binary_search.coffee
Expand Up @@ -22,4 +22,4 @@ binary_search = (items, value) ->
console.log 2 is binary_search [10, 20, 30, 40, 50], 30
console.log 4 is binary_search [-97, 35, 67, 88, 1200], 1200
console.log 0 is binary_search [0, 45, 70], 0
console.log -1 is binary_search [0, 45, 70], 10
console.log -1 is binary_search [0, 45, 70], 10
2 changes: 1 addition & 1 deletion examples/computer_science/bubble_sort.coffee
Expand Up @@ -8,4 +8,4 @@ bubble_sort = (list) ->

# Test the function.
console.log bubble_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log bubble_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log bubble_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
2 changes: 1 addition & 1 deletion examples/computer_science/merge_sort.coffee
Expand Up @@ -15,4 +15,4 @@ merge_sort = (list) ->

# Test the function.
console.log merge_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log merge_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log merge_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
2 changes: 1 addition & 1 deletion examples/computer_science/selection_sort.coffee
Expand Up @@ -20,4 +20,4 @@ selection_sort = (list) ->

# Test the function.
console.log selection_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log selection_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log selection_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'

0 comments on commit 8711da0

Please sign in to comment.