aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorJack Nagel2014-02-27 14:00:42 -0600
committerJack Nagel2014-02-27 14:00:42 -0600
commit750b843edc2f2486f8a3bc519453843a32fbcf90 (patch)
tree4da7d06f7f0d67ae27c155e49ca4247e9cafbbfa /Library/Contributions
parent4002abb1469f19b182f2e2af5d27b55f3700fef1 (diff)
downloadbrew-750b843edc2f2486f8a3bc519453843a32fbcf90.tar.bz2
Use Formula[] in example formula
Diffstat (limited to 'Library/Contributions')
-rw-r--r--Library/Contributions/example-formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb
index 40783f398..98e775b6f 100644
--- a/Library/Contributions/example-formula.rb
+++ b/Library/Contributions/example-formula.rb
@@ -272,7 +272,7 @@ class ExampleFormula < Formula
# break if they remember that exact path. In contrast to that, the
# `$(brew --prefix)/opt/formula` is the same path for all future
# versions of the formula!
- args << "--with-readline=#{Formula.factory('readline').opt_prefix}/lib" if build.with? "readline"
+ args << "--with-readline=#{Formula["readline"].opt_prefix}/lib" if build.with? "readline"
# Most software still uses `configure` and `make`.
# Check with `./configure --help` what our options are.