mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Correct doc syntax
This commit is contained in:
		
							parent
							
								
									6d9f1c67ed
								
							
						
					
					
						commit
						6cef83f9a9
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# For example, these are considered invalid:
 | 
					# For example, these are considered invalid:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# ```crystal
 | 
					# ```
 | 
				
			||||||
# foo == true
 | 
					# foo == true
 | 
				
			||||||
# bar != false
 | 
					# bar != false
 | 
				
			||||||
# false === baz
 | 
					# false === baz
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# For example, the rule considers these valid:
 | 
					# For example, the rule considers these valid:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# ```crystal
 | 
					# ```
 | 
				
			||||||
# unless something
 | 
					# unless something
 | 
				
			||||||
#   :ok
 | 
					#   :ok
 | 
				
			||||||
# end
 | 
					# end
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# But it considers this one invalid as it is an `unless` with an `else`:
 | 
					# But it considers this one invalid as it is an `unless` with an `else`:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# ```crystal
 | 
					# ```
 | 
				
			||||||
# unless something
 | 
					# unless something
 | 
				
			||||||
#   :one
 | 
					#   :one
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
| 
						 | 
					@ -27,7 +27,7 @@
 | 
				
			||||||
# The solution is to swap the order of the blocks, and change the `unless` to
 | 
					# The solution is to swap the order of the blocks, and change the `unless` to
 | 
				
			||||||
# an `if`, so the previous invalid example would become this:
 | 
					# an `if`, so the previous invalid example would become this:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# ```crystal
 | 
					# ```
 | 
				
			||||||
# if something
 | 
					# if something
 | 
				
			||||||
#   :two
 | 
					#   :two
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue