mirror of https://github.com/pallets/flask.git
				
				
				
			Merge pull request #3150 from greyli/fix-route-defaults-doc
[Doc] Fix typo in code example for route defaults
This commit is contained in:
		
						commit
						42b67a1f95
					
				| 
						 | 
				
			
			@ -726,7 +726,7 @@ requests, make sure the default route only handles ``GET``, as redirects
 | 
			
		|||
can't preserve form data. ::
 | 
			
		||||
 | 
			
		||||
   @app.route('/region/', defaults={'id': 1})
 | 
			
		||||
   @app.route('/region/<id>', methods=['GET', 'POST'])
 | 
			
		||||
   @app.route('/region/<int:id>', methods=['GET', 'POST'])
 | 
			
		||||
   def region(id):
 | 
			
		||||
      pass
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue