Merge pull request #11303 from issyl0/docs-fix-head-hash-syntax
docs/Formula-Cookbook: Fix outdated HEAD hash syntax
This commit is contained in:
		
						commit
						a81a76b196
					
				@ -577,10 +577,9 @@ To use a specific commit, tag, or branch from a repository, specify [`head`](htt
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```ruby
 | 
					```ruby
 | 
				
			||||||
class Foo < Formula
 | 
					class Foo < Formula
 | 
				
			||||||
  head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
 | 
					  head "https://github.com/some/package.git", revision: "090930930295adslfknsdfsdaffnasd13"
 | 
				
			||||||
                                         # or :branch => "develop" (the default is "master")
 | 
					                                         # or branch: "main" (the default is "master")
 | 
				
			||||||
                                         # or :tag => "1_0_release",
 | 
					                                         # or tag: "1_0_release", revision: "090930930295adslfknsdfsdaffnasd13"
 | 
				
			||||||
                                         #    :revision => "090930930295adslfknsdfsdaffnasd13"
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user