Permalink
Browse files

A little cosmetics...

  • Loading branch information...
1 parent 2a90412 commit 391bdf5156894e2735ae63aaffbf18cc4a14836c @blackwinter committed Jan 18, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 ext/libcdb/ruby_cdb_writer.c
  2. +2 −2 lib/libcdb.rb
  3. +2 −2 spec/spec_helper.rb
@@ -48,7 +48,7 @@ rcdb_writer_initialize(VALUE self, VALUE io) {
rb_sys_fail(0);
}
- if (lseek(cdb_fileno(cdbm), 0, SEEK_SET) == -1) {
+ if (lseek(cdb_fileno(cdbm), 0, SEEK_SET) == -1) {
rb_sys_fail(0);
}
View
@@ -13,8 +13,8 @@ class CDB
extend Forwardable
- MODE_READ = 'r' # :nodoc:
- MODE_WRITE = 'w' # :nodoc:
+ MODE_READ = 'r' # :nodoc:
+ MODE_WRITE = 'w' # :nodoc:
class << self
View
@@ -8,8 +8,8 @@
TEST_DATA = {}
1.upto(10) { |i|
- val = TEST_DATA[key = "key#{i}"] = []
- 1.upto(i) { |j| val << "value#{i}.#{j}" }
+ v = TEST_DATA["key#{i}"] = []
+ 1.upto(i) { |j| v << "value#{i}.#{j}" }
}
TEST_DATA['a' * 1024] = Array('b' * 1024 ** 2)

0 comments on commit 391bdf5

Please sign in to comment.