Skip to content

Commit 48ae7fd

Browse files
committed
🎨 Fix Style/CommentedKeyword issues
1 parent 6546c0a commit 48ae7fd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/nmatrix/jruby/slice.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def slice_copy(src, dest, lengths, pdest, psrc, n)
177177
dest[:elements]
178178
end
179179

180-
def dense_storage_coords(s, slice_pos, coords_out, stride, offset) # array, int, array
180+
# array, int, array
181+
def dense_storage_coords(s, slice_pos, coords_out, stride, offset)
181182
temp_pos = slice_pos
182183

183184
(0...dim).each do |i|

lib/nmatrix/monkeys.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def underscore
124124

125125
# Since `autoload` will most likely be deprecated (due to multi-threading concerns),
126126
# we'll use `const_missing`. See: https://www.ruby-forum.com/topic/3036681 for more info.
127-
module AutoloadPatch #:nodoc
127+
module AutoloadPatch # :nodoc:
128128
def const_missing(name)
129129
file = name.to_s.underscore
130130
require "nmatrix/io/#{file}"

spec/00_nmatrix_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,14 +600,15 @@
600600
expect {n == x}.to raise_error(ShapeError)
601601
end
602602

603+
# yale must have dimension 2
603604
if left != :yale && right != :yale
604605
it "tests equality of matrices with different dimension" do
605606
n = NMatrix.new([2, 1], [1, 2], stype: left)
606607
m = NMatrix.new([2], [1, 2], stype: right)
607608

608609
expect {n == m}.to raise_error(ShapeError)
609610
end
610-
end # yale must have dimension 2
611+
end
611612
end
612613
end
613614
end

0 commit comments

Comments
 (0)