summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 9e4b0277..552a5fc9 100644
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -191,7 +191,7 @@
wb.add_worksheet(:name => "custom column widths") do |sheet|
sheet.add_row ["I use autowidth and am very wide", "I use a custom width and am narrow"]
- sheet.auto_fit_data[1][:fixed] = 3
+ sheet.column_widths [nil, 3]
end
##Validate and Serialize